Index: tests/QuickRejectTest.cpp |
diff --git a/tests/QuickRejectTest.cpp b/tests/QuickRejectTest.cpp |
index 7eb80f1712b134cf67ed30e3a632caea4053175e..582789aa7561930847280fe374c5273d87972dee 100644 |
--- a/tests/QuickRejectTest.cpp |
+++ b/tests/QuickRejectTest.cpp |
@@ -82,7 +82,7 @@ static void test_drawBitmap(skiatest::Reporter* reporter) { |
// to the left. The test is to ensure that canvas' quickReject machinary |
// allows us through, even though sans-looper we would look like we should |
// be clipped out. |
- paint.setLooper(new TestLooper)->unref(); |
+ paint.setLooper(sk_make_sp<TestLooper>()); |
canvas.drawBitmap(src, SkIntToScalar(-10), 0, &paint); |
REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); |
} |