diff options
author | robertphillips <robertphillips@google.com> | 2016-04-08 14:52:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-08 14:52:52 -0700 |
commit | e6356546d8c036e32f5a03ce37161e0e790dfca4 (patch) | |
tree | 641678c0bf73ce34c660bc258bbf1fcfff41cbbf /src/effects | |
parent | 7adf9c1dd27323f60553aa5d8ffd4db9f92b95da (diff) |
Fix memory leak in SkBlurImageFilter
TBR=caryclark@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873923003
Review URL: https://codereview.chromium.org/1873923003
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkBlurImageFilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp index 4442b7e346..b8ec28f051 100644 --- a/src/effects/SkBlurImageFilter.cpp +++ b/src/effects/SkBlurImageFilter.cpp @@ -97,7 +97,7 @@ sk_sp<SkSpecialImage> SkBlurImageFilter::onFilterImage(SkSpecialImage* source, #if SK_SUPPORT_GPU if (source->isTextureBacked()) { GrContext* context = source->getContext(); - GrTexture* inputTexture = input->asTextureRef(context); + SkAutoTUnref<GrTexture> inputTexture(input->asTextureRef(context)); SkASSERT(inputTexture); if (0 == sigma.x() && 0 == sigma.y()) { |