diff options
author | Eugene Kilachkoff <[email protected]> | 2014-07-02 16:49:17 +0400 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-10-22 11:58:47 +0200 |
commit | 24a360e3924cc3fc0d14999e7a3ecf0d51b3b561 (patch) | |
tree | e93cd53204fbb8137d1e1c9bb4fd11c0f21e8973 /src/daemon/daemon.c | |
parent | 8ed79a30694b2249b6a9407d190a68f770c58e12 (diff) | |
download | mate-notification-daemon-24a360e3924cc3fc0d14999e7a3ecf0d51b3b561.tar.bz2 mate-notification-daemon-24a360e3924cc3fc0d14999e7a3ecf0d51b3b561.tar.xz |
Fix crash when switching monitors
When switching monitors AND displaying notifications at the
same time, a rare situation might occur when notification
window will be added to two or more stacks. One of the
stacks will be removed soon enough, but the "destroy"
handler will persist and will be triggered when the window
disappears. This results in a reference to a freed memory
and (usually) a daemon crash, a typical one is
https://retrace.fedoraproject.org/faf/reports/359836/ for
example.
So, the removal handlers referring to a deleted stack must
be cancelled prior to removal.
Closes https://github.com/mate-desktop/mate-notification-daemon/pull/34
Diffstat (limited to 'src/daemon/daemon.c')
0 files changed, 0 insertions, 0 deletions