Index: tests/RTreeTest.cpp |
diff --git a/tests/RTreeTest.cpp b/tests/RTreeTest.cpp |
index 50eaacb603fd3610047d082dbb438c7f66dd6448..16ccb4f508f6db4be910978a3a4c36c2c6045de1 100644 |
--- a/tests/RTreeTest.cpp |
+++ b/tests/RTreeTest.cpp |
@@ -80,7 +80,7 @@ DEF_TEST(RTree, reporter) { |
rects[j] = random_rect(rand); |
} |
- rtree.insert(&rects, NUM_RECTS); |
+ rtree.insert(rects.get(), NUM_RECTS); |
SkASSERT(rects); // SkRTree doesn't take ownership of rects. |
run_queries(reporter, rand, rects, rtree); |