Merge lp:~flegu/widelands/r8481-renderedtext-memory-leaks into lp:widelands
Proposed by
Jukka Pakarinen
Status: | Merged |
---|---|
Merged at revision: | 8485 |
Proposed branch: | lp:~flegu/widelands/r8481-renderedtext-memory-leaks |
Merge into: | lp:widelands |
Diff against target: |
131 lines (+18/-18) 2 files modified
src/graphic/text/rendered_text.h (+1/-1) src/graphic/text/rt_render.cc (+17/-17) |
To merge this branch: | bzr merge lp:~flegu/widelands/r8481-renderedtext-memory-leaks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email:
|
Description of the change
Valgrind analysis reveals memory leaks from RenderedText objects during startup of the game. The leaks are already reported in bug 1668200 #4 #6.
The leaks are detected in Debug and Release builds on Debian 9.1. Valgrind does not see the leaks if a build is done with the changes in the branch.
To post a comment you must log in.
Thanks for the fix!
Looks good to me - can you please replace UI::RenderedTex t::Shared with std::shared_ ptr<UI: :RenderedText> and get rid of the new using statement? I think that would make the code easier to read.