aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-13 16:18:49 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-13 16:18:49 +0000
commite5eee5121123b4b878d384413c528b99c2e6c18f (patch)
treeb4458c143c77b061391ccfc6a929729d773e8eca
parentb17ccc992da94e55cef07cedf5491911d78dfa3f (diff)
fix memory leak introduced in 9e5f85e8
R=sugoi@chromium.org, robertphillips@google.com Author: halcanary@google.com Review URL: https://codereview.chromium.org/199173002 git-svn-id: http://skia.googlecode.com/svn/trunk@13786 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tests/SerializationTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp
index f3dafc821c..2ddd368433 100644
--- a/tests/SerializationTest.cpp
+++ b/tests/SerializationTest.cpp
@@ -383,7 +383,8 @@ DEF_TEST(Serialization, reporter) {
// Deserialize picture
SkValidatingReadBuffer reader(data, size);
- SkPicture* readPict(SkPicture::CreateFromBuffer(reader));
- REPORTER_ASSERT(reporter, NULL != readPict);
+ SkAutoTUnref<SkPicture> readPict(
+ SkPicture::CreateFromBuffer(reader));
+ REPORTER_ASSERT(reporter, NULL != readPict.get());
}
}