From b62ce7074508c56f839d8fa1dd07161cfe9da327 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Wed, 27 Mar 2013 21:31:21 +0000 Subject: Fix minor memory leaks https://codereview.chromium.org/12703044/ git-svn-id: http://skia.googlecode.com/svn/trunk@8419 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/dashing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/dashing.cpp') 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]; -- cgit v1.2.3