Index: gm/morphology.cpp |
diff --git a/gm/morphology.cpp b/gm/morphology.cpp |
index a2206b8f522b8e6c9c15335cd0f55428af2c6c5b..0b4d3af224b96941973dd40dd65b89a8b27525a8 100644 |
--- a/gm/morphology.cpp |
+++ b/gm/morphology.cpp |
@@ -74,13 +74,13 @@ protected: |
for (unsigned i = 0; i < SK_ARRAY_COUNT(samples); ++i) { |
const SkImageFilter::CropRect* cr = j & 0x02 ? &cropRect : NULL; |
if (j & 0x01) { |
- paint.setImageFilter(new SkErodeImageFilter( |
+ paint.setImageFilter(SkErodeImageFilter::Create( |
samples[i].fRadiusX, |
samples[i].fRadiusY, |
NULL, |
cr))->unref(); |
} else { |
- paint.setImageFilter(new SkDilateImageFilter( |
+ paint.setImageFilter(SkDilateImageFilter::Create( |
samples[i].fRadiusX, |
samples[i].fRadiusY, |
NULL, |