commit | 06d37714f722ff9e27fa31e243428afa86bf6bd3 | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Mon Jul 07 07:00:14 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Jul 07 07:00:14 2014 -0700 |
tree | e21e415bd0ef6b01f6f91a2ccead43fe81c4f4e0 | |
parent | 3ef04532990603888567426dc6275d81f37c7cce [diff] |
Only you can prevent memory leaks. SkPaint::setFoo() refs the foo, leaving the foo with a bonus ref unless you call ->unref(). Valgrind caught this: http://108.170.220.120:10117/builders/Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind/builds/317/steps/RunTests/logs/stdio BUG=skia: R=tomhudson@chromium.org, mtklein@google.com, tomhudson@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/377523002