Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index b28a62bcd7aa990869f39bcd483cf0f30bd3db18..066a91f9c51b5cfba02733b006f147332f2bf3c7 100644 |
--- a/src/effects/SkAlphaThresholdFilter.cpp |
+++ b/src/effects/SkAlphaThresholdFilter.cpp |
@@ -277,7 +277,7 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp, |
return false; |
} |
- GrDrawContext* drawContext = context->drawContext(); |
+ SkAutoTUnref<GrDrawContext> drawContext(context->drawContext()); |
if (drawContext) { |
GrPaint grPaint; |
grPaint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); |