| Index: src/effects/SkMorphologyImageFilter.cpp
|
| diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
|
| index 2c99af92da32ef11324746db69bf7d3b5d7ff699..440d88d5bfbe5386fe34c9f30bdaba960d529d66 100644
|
| --- a/src/effects/SkMorphologyImageFilter.cpp
|
| +++ b/src/effects/SkMorphologyImageFilter.cpp
|
| @@ -573,7 +573,7 @@ bool apply_morphology(const SkBitmap& input,
|
| if (nullptr == scratch) {
|
| return false;
|
| }
|
| - GrDrawContext* dstDrawContext = context->drawContext();
|
| + SkAutoTUnref<GrDrawContext> dstDrawContext(context->drawContext());
|
| if (!dstDrawContext) {
|
| return false;
|
| }
|
| @@ -596,7 +596,7 @@ bool apply_morphology(const SkBitmap& input,
|
| if (nullptr == scratch) {
|
| return false;
|
| }
|
| - GrDrawContext* dstDrawContext = context->drawContext();
|
| + SkAutoTUnref<GrDrawContext> dstDrawContext(context->drawContext());
|
| if (!dstDrawContext) {
|
| return false;
|
| }
|
|
|