Index: src/animator/SkDrawPaint.cpp |
diff --git a/src/animator/SkDrawPaint.cpp b/src/animator/SkDrawPaint.cpp |
index d1af4f42ffc951d858d413eb6c666b6aa8294ad8..5f6efd8cc9e6f7af6c9cea8553f6ce9857d7e55c 100644 |
--- a/src/animator/SkDrawPaint.cpp |
+++ b/src/animator/SkDrawPaint.cpp |
@@ -233,7 +233,7 @@ void SkDrawPaint::setupPaint(SkPaint* paint) const { |
if (pathEffect == nullptr) |
paint->setPathEffect(nullptr); |
else if (pathEffect != (SkDrawPathEffect*) -1) |
- SkSafeUnref(paint->setPathEffect(pathEffect->getPathEffect())); |
+ paint->setPathEffect(sk_ref_sp(pathEffect->getPathEffect())); |
if (shader == nullptr) |
paint->setShader(nullptr); |
else if (shader != (SkDrawShader*) -1) |