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