Index: tests/ImageGeneratorTest.cpp |
diff --git a/tests/ImageGeneratorTest.cpp b/tests/ImageGeneratorTest.cpp |
index a7151b93fbfe0f51ba247187f7ca8c8e94d1a5ee..1846f5762ebb65cf92839ddae5f9fe635885226b 100644 |
--- a/tests/ImageGeneratorTest.cpp |
+++ b/tests/ImageGeneratorTest.cpp |
@@ -19,7 +19,7 @@ static SkImageGenerator* my_factory(SkData*) { |
static void test_imagegenerator_factory(skiatest::Reporter* reporter) { |
// just need a non-empty data to test things |
- SkData* data = SkData::NewWithCString("test_imagegenerator_factory"); |
+ SkAutoTUnref<SkData> data(SkData::NewWithCString("test_imagegenerator_factory")); |
gMyFactoryWasCalled = false; |