Index: src/animator/SkDrawPaint.cpp |
diff --git a/src/animator/SkDrawPaint.cpp b/src/animator/SkDrawPaint.cpp |
index 5f6efd8cc9e6f7af6c9cea8553f6ce9857d7e55c..fc1a4132440da91ff0830027ae3a6f6b50030461 100644 |
--- a/src/animator/SkDrawPaint.cpp |
+++ b/src/animator/SkDrawPaint.cpp |
@@ -237,7 +237,7 @@ void SkDrawPaint::setupPaint(SkPaint* paint) const { |
if (shader == nullptr) |
paint->setShader(nullptr); |
else if (shader != (SkDrawShader*) -1) |
- SkSafeUnref(paint->setShader(shader->getShader())); |
+ paint->setShader(sk_ref_sp(shader->getShader())); |
if (strikeThru != -1) |
paint->setStrikeThruText(SkToBool(strikeThru)); |
if (strokeCap != -1) |