diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-04 17:49:54 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-04 17:49:54 +0000 |
commit | 8df32b978f12e541af29d301e5d744cbd8f63676 (patch) | |
tree | 57c14ee0b8609daf452ad2b7bf2f63091e9930a0 /src | |
parent | fdbd504950556ea1165ee9b1df1c0968252c7d7e (diff) |
Added root deletion code to fix valgrind error
BUG=skia:
R=robertphillips@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/153893004
git-svn-id: http://skia.googlecode.com/svn/trunk@13308 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkQuadTree.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkQuadTree.cpp b/src/core/SkQuadTree.cpp index 8185b7fa01..97f86cfb5a 100644 --- a/src/core/SkQuadTree.cpp +++ b/src/core/SkQuadTree.cpp @@ -191,6 +191,7 @@ SkQuadTree::SkQuadTree(const SkIRect& bounds) } SkQuadTree::~SkQuadTree() { + SkDELETE(fRoot); } void SkQuadTree::insert(void* data, const SkIRect& bounds, bool) { |