Index: gm/strokes.cpp |
diff --git a/gm/strokes.cpp b/gm/strokes.cpp |
index f64a87640c4d41531ec21de59b00bebcc36f72c1..261db9c69d8cb3c245a8df93875b41fde0a8f629 100644 |
--- a/gm/strokes.cpp |
+++ b/gm/strokes.cpp |
@@ -128,7 +128,7 @@ |
canvas->drawPath(fMoveZfPath, strokePaint); |
dashPaint = strokePaint; |
const SkScalar intervals[] = { 0, 10 }; |
- dashPaint.setPathEffect(SkDashPathEffect::Make(intervals, 2, 0)); |
+ dashPaint.setPathEffect(SkDashPathEffect::Create(intervals, 2, 0))->unref(); |
SkPath fillPath; |
dashPaint.getFillPath(fDashedfPath, &fillPath); |
canvas->translate(0, 20); |