commit | b62ce7074508c56f839d8fa1dd07161cfe9da327 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Mar 27 21:31:21 2013 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Mar 27 21:31:21 2013 +0000 |
tree | edae2a362a010011e9eceeb355879651708cfde7 | |
parent | c1c68bd3a2bfac292f29c4dd9e26ebdede657320 [diff] [blame] |
Fix minor memory leaks https://codereview.chromium.org/12703044/ git-svn-id: http://skia.googlecode.com/svn/trunk@8419 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp index 672193d..fd14943 100644 --- a/gm/shallowgradient.cpp +++ b/gm/shallowgradient.cpp
@@ -58,7 +58,7 @@ SkSize size = SkSize::Make(r.width(), r.height()); SkPaint paint; - paint.setShader(fProc(colors, colorCount, size)); + paint.setShader(fProc(colors, colorCount, size))->unref(); canvas->drawRect(r, paint); }