Index: src/gpu/GrBlurUtils.cpp |
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp |
index a6eeae6f6bd803e36a8342665a1b5c0aaf354c12..039a12c3c8cbe7c946cba80a1ef7ca1311d20110 100644 |
--- a/src/gpu/GrBlurUtils.cpp |
+++ b/src/gpu/GrBlurUtils.cpp |
@@ -122,7 +122,7 @@ static GrTexture* create_mask_GPU(GrContext* context, |
SkRect clipRect = SkRect::MakeWH(maskRect.width(), maskRect.height()); |
- GrDrawContext* drawContext = context->drawContext(); |
+ SkAutoTUnref<GrDrawContext> drawContext(context->drawContext()); |
if (!drawContext) { |
return nullptr; |
} |