From 694307c9f1ade20a3c5f968c248a66b6a2d151a8 Mon Sep 17 00:00:00 2001 From: mtklein Date: Thu, 9 Jul 2015 15:41:11 -0700 Subject: Let's not leak this SkData. BUG=skia: Review URL: https://codereview.chromium.org/1231903006 --- tests/ImageGeneratorTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/ImageGeneratorTest.cpp') 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 data(SkData::NewWithCString("test_imagegenerator_factory")); gMyFactoryWasCalled = false; -- cgit v1.2.3