Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index d7c874cfda999afe2b610f2b2dadcefc7a563ea0..491f5983d8c5da29577890d05b38a90ee1b78909 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -965,6 +965,9 @@ GrFragmentProcessor* GrRRectBlurEffect::Create(GrContext* context, float sigma, |
texDesc.fConfig = kAlpha_8_GrPixelConfig; |
blurNinePatchTexture = context->createTexture(texDesc, true, blurred_mask.fImage, 0); |
+ if (!blurNinePatchTexture) { |
+ return NULL; |
+ } |
context->addResourceToCache(key, blurNinePatchTexture); |
SkMask::FreeImage(blurred_mask.fImage); |