aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-27 15:18:04 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-27 15:18:04 +0000
commitd198a5b8a706d2bcfa94e351d3a41f5379777e4a (patch)
treeec43973e0e7555fa602b6432f8d0dc22e27958c8 /src/effects
parent7775d66aa0e5958c9ea55ddb8317af4d9b019220 (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.cpp2
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;
}