| Index: tests/PictureTest.cpp
|
| diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
|
| index b235a0cc23e512ffe0c2122c83be19dc25ba61fd..ae1ef6500257ffe63caa8f31df16b3c711f49ce1 100644
|
| --- a/tests/PictureTest.cpp
|
| +++ b/tests/PictureTest.cpp
|
| @@ -993,7 +993,8 @@ static void test_cull_rect_reset(skiatest::Reporter* reporter) {
|
| SkPaint paint;
|
| canvas->drawRect(bounds, paint);
|
| canvas->drawRect(bounds, paint);
|
| - const SkBigPicture* picture = recorder.endRecordingAsPicture(bounds)->asSkBigPicture();
|
| + SkAutoTUnref<const SkPicture> p(recorder.endRecordingAsPicture(bounds));
|
| + const SkBigPicture* picture = p->asSkBigPicture();
|
| REPORTER_ASSERT(reporter, picture);
|
|
|
| SkRect finalCullRect = picture->cullRect();
|
|
|