diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-27 15:18:04 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-27 15:18:04 +0000 |
commit | d198a5b8a706d2bcfa94e351d3a41f5379777e4a (patch) | |
tree | ec43973e0e7555fa602b6432f8d0dc22e27958c8 /src/effects | |
parent | 7775d66aa0e5958c9ea55ddb8317af4d9b019220 (diff) |
don't leak *every* src mask in the ninepatch case. doh.
git-svn-id: http://skia.googlecode.com/svn/trunk@6560 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkBlurMaskFilter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp index 63ed821705..a32b31bedc 100644 --- a/src/effects/SkBlurMaskFilter.cpp +++ b/src/effects/SkBlurMaskFilter.cpp @@ -233,6 +233,8 @@ SkBlurMaskFilterImpl::filterRectsToNine(const SkRect rects[], int count, return kFalse_FilterReturn; } + SkAutoMaskFreeImage amf(srcM.fImage); + if (!this->filterMask(&patch->fMask, srcM, matrix, &margin)) { return kFalse_FilterReturn; } |