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:
parent
a29105ad10
commit
85b45af26f
@ -687,7 +687,7 @@ bool GrRectBlurEffect::CreateScanlineTextures(GrContext *context, float sigma,
|
||||
verticalPixels, 0);
|
||||
|
||||
if (NULL == *verticalScanline) {
|
||||
(*horizontalScanline)->unref();
|
||||
SkSafeSetNull(*horizontalScanline);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user