Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index fdd78f8f73a062c79d1c31c11dc83e0c6c28c9df..935ce77d5ff64c6a4268d3896f44aff40bb2a37e 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -301,7 +301,7 @@ sk_sp<SkSpecialImage> SkImageFilter::DrawWithFP(GrContext* context, |
return nullptr; |
} |
- sk_sp<GrDrawContext> drawContext(context->drawContext(dst->asRenderTarget())); |
+ sk_sp<GrDrawContext> drawContext(context->drawContext(sk_ref_sp(dst->asRenderTarget()))); |
if (!drawContext) { |
return nullptr; |
} |