Index: tests/PaintTest.cpp |
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp |
index 945c8a1affa3f85842e5d72df15b3fdb0087113e..b07c0e41ae7d401bed41544988fd189659569910 100644 |
--- a/tests/PaintTest.cpp |
+++ b/tests/PaintTest.cpp |
@@ -292,7 +292,7 @@ DEF_TEST(Paint_MoreFlattening, r) { |
paint.setColor(0x00AABBCC); |
paint.setTextScaleX(1.0f); // Default value, ignored. |
paint.setTextSize(19); |
- paint.setXfermode(SkXfermode::Create(SkXfermode::kModulate_Mode))->unref(); |
+ paint.setXfermode(SkXfermode::Make(SkXfermode::kModulate_Mode)); |
paint.setLooper(nullptr); // Default value, ignored. |
SkWriteBuffer writer; |