Index: gm/colorfilters.cpp |
diff --git a/gm/colorfilters.cpp b/gm/colorfilters.cpp |
index 635298533b225a762dc92d9af69a5e90bbb5890b..eaee39dd55b729df124a2e7fc1b3f58a27059e2d 100644 |
--- a/gm/colorfilters.cpp |
+++ b/gm/colorfilters.cpp |
@@ -30,7 +30,7 @@ |
} |
static void install_lighting(SkPaint* paint, uint32_t mul, uint32_t add) { |
- paint->setColorFilter(SkColorMatrixFilter::MakeLightingFilter(mul, add)); |
+ paint->setColorFilter(SkColorMatrixFilter::CreateLightingFilter(mul, add))->unref(); |
} |
class ColorFiltersGM : public skiagm::GM { |