Commit 6b127cd2 authored by commit-bot@chromium.org's avatar commit-bot@chromium.org
Browse files

fix leaks in blurrrect -- this should address the valgrind issues.

BUG=skia:
R=caryclark@google.com
TBR=caryclark

Author: humper@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@14429 2bbb7eff-a529-9590-31e7-b0007b416f81
parent 1c743746
......@@ -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(&params, texDesc, blurRRectNinePatchID, blurred_mask.fImage, 0);
SkMask::FreeImage(blurred_mask.fImage);
}
SkAutoTUnref<GrTexture> blurunref(blurNinePatchTexture);
if (NULL == blurNinePatchTexture) {
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment