Index: src/core/SkLocalMatrixImageFilter.cpp |
diff --git a/src/core/SkLocalMatrixImageFilter.cpp b/src/core/SkLocalMatrixImageFilter.cpp |
index bf29bd235be5b522d68778ab6f45f6e0f7f496b6..42acee0c221b5614fa02a6cb16068ee2fea22e0e 100644 |
--- a/src/core/SkLocalMatrixImageFilter.cpp |
+++ b/src/core/SkLocalMatrixImageFilter.cpp |
@@ -16,11 +16,11 @@ SkLocalMatrixImageFilter::SkLocalMatrixImageFilter(const SkMatrix& localM, |
, fLocalM(localM) { |
} |
-SkFlattenable* SkLocalMatrixImageFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkLocalMatrixImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); |
SkMatrix lm; |
buffer.readMatrix(&lm); |
- return SkLocalMatrixImageFilter::Make(lm, common.getInput(0)).release(); |
+ return SkLocalMatrixImageFilter::Make(lm, common.getInput(0)); |
} |
void SkLocalMatrixImageFilter::flatten(SkWriteBuffer& buffer) const { |