Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index e4eca0cf990fbaec58596b16e50c403d3def8050..d5e4c08c1f513f8fce143e1a50708c2400cb4c30 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -1930,11 +1930,11 @@ void SkPaint::unflatten(SkReadBuffer& buffer) { |
this->setPathEffect(buffer.readPathEffect()); |
this->setShader(buffer.readShader()); |
this->setXfermode(buffer.readXfermode()); |
- SkSafeUnref(this->setMaskFilter(buffer.readMaskFilter())); |
+ this->setMaskFilter(buffer.readMaskFilter()); |
this->setColorFilter(buffer.readColorFilter()); |
this->setRasterizer(buffer.readRasterizer()); |
this->setLooper(buffer.readDrawLooper()); |
- SkSafeUnref(this->setImageFilter(buffer.readImageFilter())); |
+ this->setImageFilter(buffer.readImageFilter()); |
if (buffer.isVersionLT(SkReadBuffer::kAnnotationsMovedToCanvas_Version)) { |
// We used to store annotations here (string+skdata) if this bool was true |