Set the horizontal scanline to NULL when the vertical one fails

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
This commit is contained in:
commit-bot@chromium.org 2014-01-31 14:47:57 +00:00
parent a29105ad10
commit 85b45af26f

View File

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