Set the horizontal scanline to NULL when the vertical one fails
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 31 Jan 2014 14:47:57 +0000 (14:47 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 31 Jan 2014 14:47:57 +0000 (14:47 +0000)
BUG=skia:
R=robertphillips@google.com

Author: humper@google.com

Review URL: https://codereview.chromium.org/150013004

git-svn-id: http://skia.googlecode.com/svn/trunk@13261 2bbb7eff-a529-9590-31e7-b0007b416f81

src/effects/SkBlurMaskFilter.cpp

index 9b33544..6dde2ba 100644 (file)
@@ -687,7 +687,7 @@ bool GrRectBlurEffect::CreateScanlineTextures(GrContext *context, float sigma,
                                                    verticalPixels, 0);
 
         if (NULL == *verticalScanline) {
-            (*horizontalScanline)->unref();
+            SkSafeSetNull(*horizontalScanline);
             return false;
         }