Index: gm/imageblur2.cpp |
diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp |
index 223582f12029664a2b3a35b4db037e49358a902f..2b95c02ab10078c137290b15be2deb1b8693808a 100644 |
--- a/gm/imageblur2.cpp |
+++ b/gm/imageblur2.cpp |
@@ -58,7 +58,8 @@ protected: |
SkScalar sigmaY = kBlurSigmas[y]; |
SkPaint paint; |
- paint.setImageFilter(SkBlurImageFilter::Create(sigmaX, sigmaY))->unref(); |
+ SkAutoTUnref<SkImageFilter> blur(SkBlurImageFilter::Create(sigmaX, sigmaY)); |
+ paint.setImageFilter(blur); |
canvas->saveLayer(nullptr, &paint); |
SkRandom rand; |