aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/dashing.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-27 21:31:21 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-27 21:31:21 +0000
commitb62ce7074508c56f839d8fa1dd07161cfe9da327 (patch)
treeedae2a362a010011e9eceeb355879651708cfde7 /gm/dashing.cpp
parentc1c68bd3a2bfac292f29c4dd9e26ebdede657320 (diff)
Fix minor memory leaks
Diffstat (limited to 'gm/dashing.cpp')
-rw-r--r--gm/dashing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp
index 7fe3029ca2..bbd0b65c20 100644
--- a/gm/dashing.cpp
+++ b/gm/dashing.cpp
@@ -202,7 +202,7 @@ protected:
SkScalar intervals[2] = { dashLength, dashLength };
- p.setPathEffect(new SkDashPathEffect(intervals, 2, phase, false));
+ p.setPathEffect(new SkDashPathEffect(intervals, 2, phase, false))->unref();
SkPoint pts[2];