Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index 6fe9d7599d30a7342fe0f3b93301453842f46eb3..19bdcaf0aa97ccd199d86f820b682ec050f8d91f 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -375,9 +375,7 @@ |
#endif |
SET_PTR(ImageFilter) |
SET_PTR(Shader) |
-#ifdef SK_SUPPORT_LEGACY_COLORFILTER_PTR |
SET_PTR(ColorFilter) |
-#endif |
SET_PTR(Xfermode) |
#ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR |
SET_PTR(PathEffect) |
@@ -1942,7 +1940,7 @@ |
this->setShader(buffer.readShader()); |
SkSafeUnref(this->setXfermode(buffer.readXfermode())); |
SkSafeUnref(this->setMaskFilter(buffer.readMaskFilter())); |
- this->setColorFilter(buffer.readColorFilter()); |
+ SkSafeUnref(this->setColorFilter(buffer.readColorFilter())); |
this->setRasterizer(buffer.readRasterizer()); |
this->setLooper(buffer.readDrawLooper()); |
SkSafeUnref(this->setImageFilter(buffer.readImageFilter())); |