Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index 4442b7e3463cfa4be076977ded647bae2309332f..b8ec28f051b50bffbb33878c2d3b9989715cc800 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()) { |