Index: gm/dashing.cpp |
diff --git a/gm/dashing.cpp b/gm/dashing.cpp |
index f69a37ecd117e34167fefc9ba5ec76c937da84ef..0e249c7d61cae7248206b857e2d31d63e12d41df 100644 |
--- a/gm/dashing.cpp |
+++ b/gm/dashing.cpp |
@@ -21,8 +21,7 @@ |
SkIntToScalar(off), |
}; |
- SkAutoTUnref<SkPathEffect> effect(SkDashPathEffect::Create(intervals, 2, phase)); |
- p.setPathEffect(effect); |
+ p.setPathEffect(SkDashPathEffect::Create(intervals, 2, phase))->unref(); |
canvas->drawLine(startX, startY, finalX, finalY, p); |
} |