aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imageblur2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/imageblur2.cpp')
-rw-r--r--gm/imageblur2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp
index 223582f120..2b95c02ab1 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;