Merge lp://staging/~lukas-kde/unity-notifications/fix-1453958 into lp://staging/unity-notifications
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Pete Woods | ||||
Approved revision: | 231 | ||||
Merged at revision: | 236 | ||||
Proposed branch: | lp://staging/~lukas-kde/unity-notifications/fix-1453958 | ||||
Merge into: | lp://staging/unity-notifications | ||||
Diff against target: |
422 lines (+145/-93) 9 files modified
include/ActionModel.h (+4/-4) include/Notification.h (+3/-0) include/NotificationModel.h (+3/-3) include/NotificationPlugin.h (+2/-2) src/Notification.cpp (+3/-3) src/NotificationModel.cpp (+45/-37) src/NotificationServer.cpp (+6/-6) test/CMakeLists.txt (+0/-1) test/notificationtest.cpp (+79/-37) |
||||
To merge this branch: | bzr merge lp://staging/~lukas-kde/unity-notifications/fix-1453958 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pete Woods | Approve | ||
Review via email: mp+274163@code.staging.launchpad.net |
Commit message
Merge and rebase older code to fix notifications crashing on closing
Description of the change
Merge and rebase older code to fix notifications crashing on closing
Cf. https:/
Original message from lp:~macslow/unity-notifications/fix-1453958:
Plugged memory-leaks causing the backend to crash the unity8-
Checklist:
* Are there any related MPs required for this MP to build/function as expected? Please list.
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Yes
* If you changed the UI, has there been a design review?
N/A
When making a QSharedPointer use deleteLater, you should really pass in a custom deleter like so:
QSharedPoint er<MyClass> instance(new Myclass(param), &QObject: :deleteLater)
i.e. at object creation time. It's risky to grab the raw pointer from a shared pointer and ask it to delete at some point.