Index: gm/imageblurtiled.cpp |
diff --git a/gm/imageblurtiled.cpp b/gm/imageblurtiled.cpp |
index 68e5785ddfd81f3328c0883ab6c04560962b2f8a..9f8bfe510f4977f7109e71cfad12493c0b408ac5 100644 |
--- a/gm/imageblurtiled.cpp |
+++ b/gm/imageblurtiled.cpp |
@@ -31,7 +31,8 @@ protected: |
virtual void onDraw(SkCanvas* canvas) { |
SkPaint paint; |
- paint.setImageFilter(SkBlurImageFilter::Create(fSigmaX, fSigmaY))->unref(); |
+ SkAutoTUnref<SkImageFilter> blur(SkBlurImageFilter::Create(fSigmaX, fSigmaY)); |
+ paint.setImageFilter(blur); |
const SkScalar tile_size = SkIntToScalar(128); |
SkRect bounds; |
if (!canvas->getClipBounds(&bounds)) { |