Merge lp:~thomir/unity/panelmenuview-fix-invalid-read into lp:unity
| Status: | Merged |
|---|---|
| Approved by: | Tim Penhey on 2012-04-11 |
| Approved revision: | 2265 |
| Merged at revision: | 2266 |
| Proposed branch: | lp:~thomir/unity/panelmenuview-fix-invalid-read |
| Merge into: | lp:unity |
| Diff against target: |
28 lines (+9/-2) 1 file modified
plugins/unityshell/src/PanelMenuView.cpp (+9/-2) |
| To merge this branch: | bzr merge lp:~thomir/unity/panelmenuview-fix-invalid-read |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Tim Penhey (community) | Approve on 2012-04-11 | ||
| Brandon Schaefer (community) | 2012-04-10 | Approve on 2012-04-10 | |
|
Review via email:
|
|||
Commit Message
PanelMenuView no longer tries to dereference a pointer that has already been deleted when it's destroyed.
Description of the Change
Problem:
PanelMenuView has an Animator instance as a member variable. It conntacts the animator's 'animation_
Solution:
Explicitly stop the animation in the PanelMenuView destructor BEFORE the _window_buttons member variable is deleted. The Animator class is clever enough not to emit the 'animation_
UNBLOCK
| Tim Penhey (thumper) wrote : | # |
Please don't assign to nullptr in the destructor. It is pointless.
- 2264. By Thomi Richards on 2012-04-11
-
Found a better way.
- 2265. By Thomi Richards on 2012-04-11
-
Removed nullptr assigns.


Looks good! +1