Index: src/animator/SkDrawPaint.cpp |
diff --git a/src/animator/SkDrawPaint.cpp b/src/animator/SkDrawPaint.cpp |
index fc1a4132440da91ff0830027ae3a6f6b50030461..1336ea2dc429b0039b0ff1fcea3f745bef96b9e4 100644 |
--- a/src/animator/SkDrawPaint.cpp |
+++ b/src/animator/SkDrawPaint.cpp |
@@ -229,7 +229,7 @@ void SkDrawPaint::setupPaint(SkPaint* paint) const { |
if (maskFilter == nullptr) |
paint->setMaskFilter(nullptr); |
else if (maskFilter != (SkDrawMaskFilter*) -1) |
- SkSafeUnref(paint->setMaskFilter(maskFilter->getMaskFilter())); |
+ paint->setMaskFilter(sk_sp<SkMaskFilter>(maskFilter->getMaskFilter())); |
if (pathEffect == nullptr) |
paint->setPathEffect(nullptr); |
else if (pathEffect != (SkDrawPathEffect*) -1) |