Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: src/core/SkQuadTree.cpp

Issue 153893004: Added root deletion code to fix valgrind error (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Trying again Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkQuadTree.cpp
diff --git a/src/core/SkQuadTree.cpp b/src/core/SkQuadTree.cpp
index 8185b7fa0119e90b3c0ed72fa2cd4416a3c58f08..97f86cfb5add9257af5684e857b1720bd84ded70 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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698