diff options
Diffstat (limited to 'gm/dashcircle.cpp')
-rw-r--r-- | gm/dashcircle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/dashcircle.cpp b/gm/dashcircle.cpp index a02c7d0f7b..cddd913723 100644 --- a/gm/dashcircle.cpp +++ b/gm/dashcircle.cpp @@ -68,7 +68,7 @@ DEF_SIMPLE_GM(dashcircle, canvas, 900, 1200) { for (int index = 0; index < dashExample.length; ++index) { intervals[index] = dashExample.pattern[index] * dashLength; } - p.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, 0)); + p.setPathEffect(SkDashPathEffect::Create(intervals, intervalCount, 0))->unref(); canvas->drawPath(circle, p); canvas->translate(0, radius * 2 + 50); } |