Index: src/effects/SkArcToPathEffect.cpp |
diff --git a/src/effects/SkArcToPathEffect.cpp b/src/effects/SkArcToPathEffect.cpp |
index c660de9db4494d5b8d932c8258abb2b3e8e94f31..a6273db0926792d12e47876428a3fdf073f8e619 100644 |
--- a/src/effects/SkArcToPathEffect.cpp |
+++ b/src/effects/SkArcToPathEffect.cpp |
@@ -61,8 +61,8 @@ DONE: |
return true; |
} |
-SkFlattenable* SkArcToPathEffect::CreateProc(SkReadBuffer& buffer) { |
- return SkArcToPathEffect::Make(buffer.readScalar()).release(); |
+sk_sp<SkFlattenable> SkArcToPathEffect::CreateProc(SkReadBuffer& buffer) { |
+ return SkArcToPathEffect::Make(buffer.readScalar()); |
} |
void SkArcToPathEffect::flatten(SkWriteBuffer& buffer) const { |