diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-11 11:54:07 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-11 11:54:07 +0000 |
commit | 07a05d5130ee0d8444960fdba574e69b7254f1df (patch) | |
tree | c3b2f1319bbfb3320218df84bd2432c1a1c5ff7a /bench | |
parent | f0c1e0f56da023c0949d65e446323148870843b7 (diff) |
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
Diffstat (limited to 'bench')
-rw-r--r-- | bench/RTreeBench.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp index 2ee6deae7b..edea57d10a 100644 --- a/bench/RTreeBench.cpp +++ b/bench/RTreeBench.cpp @@ -36,6 +36,9 @@ public: fName.append("_bulk"); } } + virtual ~BBoxBuildBench() { + delete fTree; + } protected: virtual const char* onGetName() { return fName.c_str(); @@ -89,6 +92,9 @@ public: } fTree->flushDeferredInserts(); } + virtual ~BBoxQueryBench() { + delete fTree; + } protected: virtual const char* onGetName() { return fName.c_str(); |