diff options
Diffstat (limited to 'tests/DrawBitmapRectTest.cpp')
-rw-r--r-- | tests/DrawBitmapRectTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp index 221f0c9b91..62da1c2af8 100644 --- a/tests/DrawBitmapRectTest.cpp +++ b/tests/DrawBitmapRectTest.cpp @@ -38,7 +38,7 @@ static void test_faulty_pixelref(skiatest::Reporter* reporter) { SkBitmap bm; const SkImageInfo info = SkImageInfo::MakeN32Premul(100, 100); bm.setInfo(info); - bm.setPixelRef(new FailurePixelRef(info), 0, 0)->unref(); + bm.setPixelRef(sk_make_sp<FailurePixelRef>(info), 0, 0); // now our bitmap has a pixelref, but we know it will fail to lock auto surface(SkSurface::MakeRasterN32Premul(200, 200)); |