Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index 4d96332e2c5f7d038096d245485a7f6a5565674e..2bed2fe8d6e3ee1d3d2ccf48bf2c5af0083bd03d 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -906,8 +906,10 @@ GrEffectRef* GrRRectBlurEffect::Create(GrContext* context, float sigma, const Sk |
SkBlurMask::BoxBlur(&blurred_mask, mask, sigma, kNormal_SkBlurStyle, kHigh_SkBlurQuality, NULL, true ); |
blurNinePatchTexture = context->createTexture(¶ms, texDesc, blurRRectNinePatchID, blurred_mask.fImage, 0); |
+ SkMask::FreeImage(blurred_mask.fImage); |
} |
+ SkAutoTUnref<GrTexture> blurunref(blurNinePatchTexture); |
if (NULL == blurNinePatchTexture) { |
return NULL; |
} |