Index: src/effects/SkColorCubeFilter.cpp |
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp |
index 253d2877596946a72899c83cc79648e7c3d0e0b2..8347a9e80f3f71f3fec45db926f9215f8e60c4b1 100644 |
--- a/src/effects/SkColorCubeFilter.cpp |
+++ b/src/effects/SkColorCubeFilter.cpp |
@@ -365,6 +365,9 @@ bool SkColorCubeFilter::asFragmentProcessors(GrContext* context, |
if (frag) { |
if (array) { |
*array->append() = frag; |
+ } else { |
+ frag->unref(); |
+ SkDEBUGCODE(frag = NULL;) |
} |
return true; |
} |