diff options
author | mtklein <mtklein@chromium.org> | 2015-07-09 15:41:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-09 15:41:11 -0700 |
commit | 694307c9f1ade20a3c5f968c248a66b6a2d151a8 (patch) | |
tree | 135de4160ffd72a0087dc70d89005666dbccab05 /tests/ImageGeneratorTest.cpp | |
parent | d7c05bfd7c81a835a78b4163026a4dfa573faa89 (diff) |
Let's not leak this SkData.
BUG=skia:
Review URL: https://codereview.chromium.org/1231903006
Diffstat (limited to 'tests/ImageGeneratorTest.cpp')
-rw-r--r-- | tests/ImageGeneratorTest.cpp | 2 |
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; |