Index: gm/dcshader.cpp |
diff --git a/gm/dcshader.cpp b/gm/dcshader.cpp |
index 4dedf74093e0bb8c04af2dd2c45457b8b7ce1f8e..ed2b058e51b09c0d33fe5fc2d9d7e2ff9108a166 100644 |
--- a/gm/dcshader.cpp |
+++ b/gm/dcshader.cpp |
@@ -257,7 +257,7 @@ protected: |
for (int i = 0; i < fPrims.count(); ++i) { |
for (int j = 0; j < devMats.count(); ++j) { |
for (int k = 0; k < viewMats.count(); ++k) { |
- paint.setShader(new DCShader(devMats[j]))->unref(); |
+ paint.setShader(sk_make_sp<DCShader>(devMats[j])); |
paint.setAntiAlias(SkToBool(aa)); |
canvas->save(); |
canvas->concat(viewMats[k]); |