Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index fb4b48fdbd4376614c937bb2e8246aeda9510cff..90be52b403e4e5a40b161b8879afac1e169738dc 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -207,7 +207,8 @@ |
pnt.setShader(std::move(shader)); |
if (colors) { |
- pnt.setColorFilter(SkColorFilter::MakeModeFilter(colors[i], mode)); |
+ SkAutoTUnref<SkColorFilter> cf(SkColorFilter::CreateModeFilter(colors[i], mode)); |
+ pnt.setColorFilter(cf); |
} |
path.rewind(); |