Merge lp://staging/~3v1n0/nux/memory-fixes into lp://staging/nux
Proposed by
Marco Trevisan (Treviño)
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | 822 |
Merged at revision: | 802 |
Proposed branch: | lp://staging/~3v1n0/nux/memory-fixes |
Merge into: | lp://staging/nux |
Diff against target: |
1216 lines (+224/-377) 11 files modified
Nux/CairoWrapper.h (+0/-4) Nux/TimerProc.cpp (+179/-318) Nux/TimerProc.h (+7/-9) NuxCore/Property-inl.h (+8/-6) NuxCore/Property.h (+0/-15) NuxGraphics/GraphicsDisplayX11.cpp (+14/-1) NuxGraphics/XICClient.cpp (+2/-0) configure.ac (+2/-2) tests/Helpers.h (+0/-6) tests/Makefile.am (+12/-14) tests/gtest-nuxcore-properties.cpp (+0/-2) |
To merge this branch: | bzr merge lp://staging/~3v1n0/nux/memory-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Brandon Schaefer (community) | Approve | ||
Review via email: mp+175648@code.staging.launchpad.net |
Commit message
TimerProc: use std::shared_ptr to ref TimerObject in TimerHandle and a std::deque in TimerHandler
This fix several memory leaks that we are getting when the timer runs and makes the code more
maintainable.
Also various memory errors leaks.
Description of the change
After running unity tests under valgrind, I've found some bad memory usage around... Read write/errors, access to uninitialized variables and leaks. More important leaks in XGetIMValues and TimerProc, that at that point I've rewritten to use stl containers that handles std::shared_
To post a comment you must log in.
PASSED: Continuous integration, rev:820 jenkins. qa.ubuntu. com/job/ nux-ci/ 57/ jenkins. qa.ubuntu. com/job/ nux-saucy- amd64-ci/ 9 jenkins. qa.ubuntu. com/job/ nux-saucy- armhf-ci/ 9 jenkins. qa.ubuntu. com/job/ nux-saucy- i386-ci/ 9
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ nux-ci/ 57/rebuild
http://