Fix leak in PictureTest.cpp
TBR=schenney@chromium.org BUG=skia: Review URL: https://codereview.chromium.org/1210053008
This commit is contained in:
parent
2cff176fa2
commit
eedc3342db
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user