Merge lp:~thumper/unity/decaymulator-destructor into lp:unity
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2162 |
Proposed branch: | lp:~thumper/unity/decaymulator-destructor |
Merge into: | lp:unity |
Diff against target: |
56 lines (+10/-4) 2 files modified
plugins/unityshell/src/Decaymulator.cpp (+8/-3) plugins/unityshell/src/Decaymulator.h (+2/-1) |
To merge this branch: | bzr merge lp:~thumper/unity/decaymulator-destructor |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Review via email: mp+98951@code.launchpad.net |
Commit message
Make sure the decay function callback is removed on object destruction.
Description of the change
== The problem ==
Unity seg faults if you unplug a monitor while the pointer barrier is still decaying it's values.
== The solution ==
Add a destructor that removes the source if there is one.
== Tests ==
Not really easy to test. Not sure a manual test would help here.
UNBLOCK
To post a comment you must log in.
+1