From 4813458d89fb276680168848bd861b307cf83f51 Mon Sep 17 00:00:00 2001 From: "rileya@google.com" Date: Tue, 11 Sep 2012 15:41:50 +0000 Subject: 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 --- tests/RTreeTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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; -- cgit v1.2.3