Fixed memory leak in RTreeBench
http://codereview.appspot.com/6500101/
git-svn-id: http://skia.googlecode.com/svn/trunk@5478 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp
index 2ee6dea..edea57d 100644
--- a/bench/RTreeBench.cpp
+++ b/bench/RTreeBench.cpp
@@ -36,6 +36,9 @@
fName.append("_bulk");
}
}
+ virtual ~BBoxBuildBench() {
+ delete fTree;
+ }
protected:
virtual const char* onGetName() {
return fName.c_str();
@@ -89,6 +92,9 @@
}
fTree->flushDeferredInserts();
}
+ virtual ~BBoxQueryBench() {
+ delete fTree;
+ }
protected:
virtual const char* onGetName() {
return fName.c_str();