aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageGeneratorTest.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-07-09 15:41:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-09 15:41:11 -0700
commit694307c9f1ade20a3c5f968c248a66b6a2d151a8 (patch)
tree135de4160ffd72a0087dc70d89005666dbccab05 /tests/ImageGeneratorTest.cpp
parentd7c05bfd7c81a835a78b4163026a4dfa573faa89 (diff)
Let's not leak this SkData.
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;