Index: gm/imageblur.cpp |
diff --git a/gm/imageblur.cpp b/gm/imageblur.cpp |
index 575f02c095a0aacd4b98c954de0f58452c525e87..22ea408e279909d8bcc7c6e1ed634a32a2a69e11 100644 |
--- a/gm/imageblur.cpp |
+++ b/gm/imageblur.cpp |
@@ -14,7 +14,8 @@ |
void imageblurgm_draw(SkScalar fSigmaX, SkScalar fSigmaY, SkCanvas* canvas) { |
SkPaint paint; |
- paint.setImageFilter(SkBlurImageFilter::Create(fSigmaX, fSigmaY))->unref(); |
+ SkAutoTUnref<SkImageFilter> blur(SkBlurImageFilter::Create(fSigmaX, fSigmaY)); |
+ paint.setImageFilter(blur); |
canvas->saveLayer(nullptr, &paint); |
const char* str = "The quick brown fox jumped over the lazy dog."; |