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