commit | d198a5b8a706d2bcfa94e351d3a41f5379777e4a | [log] [tgz] |
---|---|---|
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 27 15:18:04 2012 +0000 |
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 27 15:18:04 2012 +0000 |
tree | ec43973e0e7555fa602b6432f8d0dc22e27958c8 | |
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
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp index 63ed821..a32b31b 100644 --- a/src/effects/SkBlurMaskFilter.cpp +++ b/src/effects/SkBlurMaskFilter.cpp
@@ -233,6 +233,8 @@ return kFalse_FilterReturn; } + SkAutoMaskFreeImage amf(srcM.fImage); + if (!this->filterMask(&patch->fMask, srcM, matrix, &margin)) { return kFalse_FilterReturn; }