safeunref method to SkSafeUnref.
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 8 Feb 2011 22:03:36 +0000 (22:03 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 8 Feb 2011 22:03:36 +0000 (22:03 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@777 2bbb7eff-a529-9590-31e7-b0007b416f81

samplecode/SampleFuzz.cpp

index ba1fc03..c6f45d6 100644 (file)
@@ -150,7 +150,7 @@ static void do_fuzz(SkCanvas* canvas) {
 
     case 7: 
       if (quick == true) break;
-          paint.setMaskFilter(SkBlurMaskFilter::Create(make_number(), SkBlurMaskFilter::kNormal_BlurStyle))->safeUnref();
+          SkSafeUnref(paint.setMaskFilter(SkBlurMaskFilter::Create(make_number(), SkBlurMaskFilter::kNormal_BlurStyle)));
       break;
 
     case 8: