aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageGeneratorTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ImageGeneratorTest.cpp')
-rw-r--r--tests/ImageGeneratorTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ImageGeneratorTest.cpp b/tests/ImageGeneratorTest.cpp
index a7151b93fb..1846f5762e 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;