Index: src/effects/SkLumaColorFilter.cpp |
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp |
index 00005417be678433f38b5f8c83695e0ee02d5bb0..13bb6cbd9ea5f778b1c8733e57ff2a52b5a9e6b6 100644 |
--- a/src/effects/SkLumaColorFilter.cpp |
+++ b/src/effects/SkLumaColorFilter.cpp |
@@ -126,6 +126,9 @@ bool SkLumaColorFilter::asFragmentProcessors(GrContext*, |
if (frag) { |
if (array) { |
*array->append() = frag; |
+ } else { |
+ frag->unref(); |
+ SkDEBUGCODE(frag = NULL;) |
Noel Gordon
2015/06/12 17:51:00
That wink at <eol> is interesting ;)
|
} |
return true; |
} |