| Index: tests/SerializationTest.cpp
|
| diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp
|
| index f3dafc821c1ef900b770653cb944c1b1c49d8cd6..2ddd368433ba2e17fc0b02fbd78d3eb0cf3fc9ce 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());
|
| }
|
| }
|
|
|