Index: src/utils/SkRGBAToYUV.cpp |
diff --git a/src/utils/SkRGBAToYUV.cpp b/src/utils/SkRGBAToYUV.cpp |
index eebbda4869e4baa4ce5914f2798c3060548732f1..b7f78bac14c08cc8110b0ca2935156d77b7ca2a1 100644 |
--- a/src/utils/SkRGBAToYUV.cpp |
+++ b/src/utils/SkRGBAToYUV.cpp |
@@ -49,7 +49,7 @@ |
int rowStartIdx = 5 * i; |
const SkScalar* row = kYUVColorSpaceInvMatrices[colorSpace] + rowStartIdx; |
paint.setColorFilter( |
- SkColorMatrixFilterRowMajor255::MakeSingleChannelOutput(row)); |
+ SkColorMatrixFilterRowMajor255::CreateSingleChannelOutput(row))->unref(); |
surface->getCanvas()->drawImageRect(image, SkIRect::MakeWH(image->width(), image->height()), |
SkRect::MakeIWH(surface->width(), surface->height()), |
&paint); |