Index: gm/stroketext.cpp |
diff --git a/gm/stroketext.cpp b/gm/stroketext.cpp |
index b247d8a711dcd783026fb38da9ec3ced9798b904..d0a9882256ba5a12fb0cb0badd3bd91a63a57eb7 100644 |
--- a/gm/stroketext.cpp |
+++ b/gm/stroketext.cpp |
@@ -55,7 +55,7 @@ |
canvas->translate(200, 0); |
SkPaint p(paint); |
- p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), phase)); |
+ p.setPathEffect(SkDashPathEffect::Create(intervals, SK_ARRAY_COUNT(intervals), phase))->unref(); |
draw_text_stroked(canvas, p, 10); |
} |