Index: src/effects/SkColorMatrixFilter.cpp |
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp |
index 6e9da61e1b79b7e620c2ae444c8e8492c6335e3f..894a7b089d378820fa81ec2cae3a01511f9ddf0b 100644 |
--- a/src/effects/SkColorMatrixFilter.cpp |
+++ b/src/effects/SkColorMatrixFilter.cpp |
@@ -562,6 +562,9 @@ bool SkColorMatrixFilter::asFragmentProcessors(GrContext*, |
if (frag) { |
if (array) { |
*array->append() = frag; |
+ } else { |
+ frag->unref(); |
+ SkDEBUGCODE(frag = NULL;) |
} |
return true; |
} |