Index: gm/blurquickreject.cpp |
diff --git a/gm/blurquickreject.cpp b/gm/blurquickreject.cpp |
index 11697fca5df78ddcdc8c259703e531023add1cce..c970458a886d44456efeed8fbfa3e9612abbade8 100644 |
--- a/gm/blurquickreject.cpp |
+++ b/gm/blurquickreject.cpp |
@@ -56,9 +56,8 @@ protected: |
SkPaint blurPaint; |
blurPaint.setFilterQuality(kLow_SkFilterQuality); |
- SkMaskFilter* mf = SkBlurMaskFilter::Create(kNormal_SkBlurStyle, |
- SkBlurMask::ConvertRadiusToSigma(kBlurRadius)); |
- blurPaint.setMaskFilter(mf)->unref(); |
+ blurPaint.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle, |
+ SkBlurMask::ConvertRadiusToSigma(kBlurRadius))); |
canvas->clear(SK_ColorBLACK); |
canvas->save(); |