diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-09 17:12:30 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-09 17:12:30 +0000 |
commit | 59ed2c22c032733c4cdaf12cc04e23bcf17f9331 (patch) | |
tree | b3f3c4509f0915bb410d89b6bbb61830212f173c | |
parent | 0379ea275f3d5b416a8fce5c9ca9aa7d88f6ba37 (diff) |
safely handle null blur filter
git-svn-id: http://skia.googlecode.com/svn/trunk@3629 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | samplecode/SampleAnimBlur.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleAnimBlur.cpp b/samplecode/SampleAnimBlur.cpp index 74f8811ee2..7f077e63e7 100644 --- a/samplecode/SampleAnimBlur.cpp +++ b/samplecode/SampleAnimBlur.cpp @@ -50,7 +50,7 @@ protected: gStyles[i], SkBlurMaskFilter::kHighQuality_BlurFlag); SkPaint paint; - paint.setMaskFilter(mf)->unref(); + SkSafeUnref(paint.setMaskFilter(mf)); paint.setColor(random.nextU() | 0xff000000); canvas->drawCircle(200 * SK_Scalar1 + 400 * (i % 2) * SK_Scalar1, 200 * SK_Scalar1 + i / 2 * 400 * SK_Scalar1, |