Index: src/effects/SkTableColorFilter.cpp |
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp |
index 27a5def5e527d8057c9f82f927bb8537625f0719..839b014c68c5bdf60fb5c3d5afe4068092cbc242 100644 |
--- a/src/effects/SkTableColorFilter.cpp |
+++ b/src/effects/SkTableColorFilter.cpp |
@@ -592,6 +592,9 @@ bool SkTable_ColorFilter::asFragmentProcessors(GrContext* context, |
if (frag) { |
if (array) { |
*array->append() = frag; |
+ } else { |
+ frag->unref(); |
+ SkDEBUGCODE(frag = NULL;) |
} |
return true; |
} |