Index: gm/emboss.cpp |
diff --git a/gm/emboss.cpp b/gm/emboss.cpp |
index 5773577389ef7d5c25cc0bd1e63ebe9ea752547b..20d3c918909e1faa12cddd57210703ba1fce6a84 100644 |
--- a/gm/emboss.cpp |
+++ b/gm/emboss.cpp |
@@ -49,7 +49,7 @@ |
// this combination of emboss+colorfilter used to crash -- so we exercise it to |
// confirm that we have a fix. |
- paint.setColorFilter(SkColorFilter::MakeModeFilter(0xFFFF0000, SkXfermode::kSrcATop_Mode)); |
+ paint.setColorFilter(SkColorFilter::CreateModeFilter(0xFFFF0000, SkXfermode::kSrcATop_Mode))->unref(); |
canvas->translate(bm.width() + SkIntToScalar(10), 0); |
canvas->drawBitmap(bm, 10, 10, &paint); |
} |