diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-11 18:45:18 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-11 18:45:18 +0000 |
commit | ad99358bdd7ca4ffb047121946abf0d5fdbde1e8 (patch) | |
tree | f1e2cd51849672fb595ca94407d866d26ebaaa24 | |
parent | 451b5962c906be9517cc99b80deecf525e85ee89 (diff) |
Fix memory leak in filterRRectToNine
https://codereview.chromium.org/65723005/
git-svn-id: http://skia.googlecode.com/svn/trunk@12222 2bbb7eff-a529-9590-31e7-b0007b416f81
-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 17690236ff..34dde3cabd 100644 --- a/src/effects/SkBlurMaskFilter.cpp +++ b/src/effects/SkBlurMaskFilter.cpp @@ -333,6 +333,8 @@ SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& ma return kFalse_FilterReturn; } + SkAutoMaskFreeImage amf(srcM.fImage); + if (!this->filterMask(&patch->fMask, srcM, matrix, &margin)) { return kFalse_FilterReturn; } |