Merge lp:~mandel/ubuntu-system-settings/mem-leak-fixes into lp:ubuntu-system-settings
Proposed by
Manuel de la Peña
Status: | Merged |
---|---|
Approved by: | Sebastien Bacher |
Approved revision: | 1223 |
Merged at revision: | 1231 |
Proposed branch: | lp:~mandel/ubuntu-system-settings/mem-leak-fixes |
Merge into: | lp:ubuntu-system-settings |
Diff against target: |
154 lines (+52/-19) 3 files modified
debian/changelog (+6/-0) plugins/system-update/download_tracker.cpp (+38/-13) plugins/system-update/download_tracker.h (+8/-6) |
To merge this branch: | bzr merge lp:~mandel/ubuntu-system-settings/mem-leak-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher (community) | Approve | ||
PS Jenkins bot | continuous-integration | Needs Fixing | |
Review via email: mp+243511@code.launchpad.net |
Commit message
Fix mem leak in the update page.
Description of the change
The Download pointer returned by the download manager (as stated by the documentation) is owned by the caller and the memory should be managed by the client. This MR cleans the resource in the following cases:
* finished
* canceled
* error
There is also a small change that removes the definitions for a better cpp approach.
To post a comment you must log in.
FAILED: Continuous integration, rev:1220 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- ci/1836/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 477 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- vivid-i386- ci/106 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 421 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 477 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 477/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 16448
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- system- settings- ci/1836/ rebuild
http://