aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-11 15:41:50 +0000
committerGravatar rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-11 15:41:50 +0000
commit4813458d89fb276680168848bd861b307cf83f51 (patch)
treeb6f1f71891ea40c8857d8a66603a267a16674c3e /tests
parent9fd7f8d2906365637dc25f98ffdede87d631ef71 (diff)
Make BBoxHierarchy ref-counted, fix leak in RTreeTest.
Review URL: https://codereview.appspot.com/6489108 git-svn-id: http://skia.googlecode.com/svn/trunk@5484 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/RTreeTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/RTreeTest.cpp b/tests/RTreeTest.cpp
index 61e6b675ad..d60bf0c08a 100644
--- a/tests/RTreeTest.cpp
+++ b/tests/RTreeTest.cpp
@@ -82,6 +82,7 @@ static void TestRTree(skiatest::Reporter* reporter) {
DataRect rects[NUM_RECTS];
SkRandom rand;
SkRTree* rtree = SkRTree::Create(MIN_CHILDREN, MAX_CHILDREN);
+ SkAutoUnref au(rtree);
REPORTER_ASSERT(reporter, NULL != rtree);
int expectedDepthMin = -1;