Index: gm/pathcontourstart.cpp |
diff --git a/gm/pathcontourstart.cpp b/gm/pathcontourstart.cpp |
index dbda7c3caef3a494c8f10e1193b2963468fbdc2e..de3644c9f195ef6ed7d8f5b087bdb8565dfdf06a 100644 |
--- a/gm/pathcontourstart.cpp |
+++ b/gm/pathcontourstart.cpp |
@@ -26,11 +26,14 @@ |
intervals.push_back(len); |
} |
+ SkAutoTUnref<SkPathEffect> effect( |
+ SkDashPathEffect::Create(intervals.begin(), intervals.count(), 0)); |
+ |
fDashPaint.setAntiAlias(true); |
fDashPaint.setStyle(SkPaint::kStroke_Style); |
fDashPaint.setStrokeWidth(6); |
fDashPaint.setColor(0xff008000); |
- fDashPaint.setPathEffect(SkDashPathEffect::Make(intervals.begin(), intervals.count(), 0)); |
+ fDashPaint.setPathEffect(effect); |
fPointsPaint.setColor(0xff800000); |
fPointsPaint.setStrokeWidth(3); |