Index: tests/PaintImageFilterTest.cpp |
diff --git a/tests/PaintImageFilterTest.cpp b/tests/PaintImageFilterTest.cpp |
index 03653368abc568cd8fa4c014c255e5acd8b1fb38..f1c0c2eb9739bd563273e15da4c0c4ff19f60a5a 100644 |
--- a/tests/PaintImageFilterTest.cpp |
+++ b/tests/PaintImageFilterTest.cpp |
@@ -38,7 +38,7 @@ |
{ |
SkPaint paint; |
SkImageFilter::CropRect cr(r); |
- paint.setImageFilter(SkPaintImageFilter::Make(gradientPaint, &cr)); |
+ paint.setImageFilter(SkPaintImageFilter::Create(gradientPaint, &cr))->unref(); |
canvasFilter.drawRect(r, paint); |
} |
@@ -84,7 +84,7 @@ |
{ |
SkPaint paint; |
SkImageFilter::CropRect cr(r); |
- paint.setImageFilter(SkPaintImageFilter::Make(gradientPaint, &cr)); |
+ paint.setImageFilter(SkPaintImageFilter::Create(gradientPaint, &cr))->unref(); |
canvasFilter.scale(SkIntToScalar(2), SkIntToScalar(2)); |
canvasFilter.drawRect(r, paint); |
} |