Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index cda3e053b9fea7282bded7da67c42431184bcc2e..32562946ed54c2baa82fbd8c2a4e39f35ac814ce 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -354,7 +354,7 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont |
SkASSERT(fp); |
paint.addColorFragmentProcessor(fp)->unref(); |
- GrDrawContext* drawContext = context->drawContext(); |
+ SkAutoTUnref<GrDrawContext> drawContext(context->drawContext()); |
if (drawContext) { |
drawContext->drawNonAARectToRect(dst->asRenderTarget(), clip, paint, SkMatrix::I(), |
dstRect, srcRect); |