Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index 7c4a94b949969f4f58166d84ed7e23443d9e2f74..9ffbe62bdc9c76358ac0f407191d3c0b7d743735 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -192,7 +192,7 @@ bool SkXfermodeImageFilter::filterImageGPU(Proxy* proxy, |
paint.addColorFragmentProcessor(foregroundDomain.get()); |
paint.addColorFragmentProcessor(xferProcessor)->unref(); |
- GrDrawContext* drawContext = context->drawContext(); |
+ SkAutoTUnref<GrDrawContext> drawContext(context->drawContext()); |
if (!drawContext) { |
return false; |
} |