diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-11 22:29:29 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-11 22:29:29 +0000 |
commit | ef284a84f503adfd08ee52b5aee142c548698ea4 (patch) | |
tree | f5f6fea1a5769031df5336a9a4c30ae45c1159a9 /gm/megalooper.cpp | |
parent | 40ea172f1ee50320fd690ace2cfcb84c09b86731 (diff) |
The two leaks are:
missing unrefs in megalooper GM
missing reset capability in oval renderer
This CL also expands the instance counting system to some recently adding classes (e.g., SkFontStyleSet)
R=bsalomon@google.com, jvanverth@google.com
Author: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/18461007
git-svn-id: http://skia.googlecode.com/svn/trunk@10030 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/megalooper.cpp')
-rw-r--r-- | gm/megalooper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/megalooper.cpp b/gm/megalooper.cpp index 832b0a8749..0f3811a8bf 100644 --- a/gm/megalooper.cpp +++ b/gm/megalooper.cpp @@ -131,7 +131,7 @@ private: for (int i = 0; i < 4; ++i) { SkPaint loopPaint; - loopPaint.setLooper(create1Looper(-kOffsetToOutsideClip, 0, gColors[i])); + loopPaint.setLooper(create1Looper(-kOffsetToOutsideClip, 0, gColors[i]))->unref(); loopPaint.setAntiAlias(true); SkRect outerClip = { @@ -194,7 +194,7 @@ private: SkPaint paint; paint.setAntiAlias(true); - paint.setLooper(create4Looper(-kOffsetToOutsideClip-kHalfSquareSize, 0)); + paint.setLooper(create4Looper(-kOffsetToOutsideClip-kHalfSquareSize, 0))->unref(); canvas->save(); canvas->clipRect(outerClip, SkRegion::kIntersect_Op); |