diff options
author | monsta <[email protected]> | 2016-09-01 15:55:29 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-09-01 16:01:00 +0300 |
commit | c03f19b451aaa4523cacb45f6b37867546f8f1b5 (patch) | |
tree | 172409f9c48e7ce9504b148ebfec0a31a929e67f /mate-window-picker-applet/task-item.c | |
parent | e619d5a793417df8e53455eaaa1fcf905ed3616a (diff) | |
download | mate-netbook-c03f19b451aaa4523cacb45f6b37867546f8f1b5.tar.bz2 mate-netbook-c03f19b451aaa4523cacb45f6b37867546f8f1b5.tar.xz |
window picker: disconnect some missing signal handlers
should prevent crashes in some cases when object is already destroyed
and is being accessed from signal handler after that
Diffstat (limited to 'mate-window-picker-applet/task-item.c')
-rw-r--r-- | mate-window-picker-applet/task-item.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-window-picker-applet/task-item.c b/mate-window-picker-applet/task-item.c index 93fae92..7c4c7c8 100644 --- a/mate-window-picker-applet/task-item.c +++ b/mate-window-picker-applet/task-item.c @@ -623,12 +623,13 @@ on_screen_window_closed (WnckScreen *screen, if (priv->window == window) { - g_signal_handlers_disconnect_by_func (screen, G_CALLBACK (on_screen_window_closed), item); + g_signal_handlers_disconnect_by_func (screen, G_CALLBACK (on_screen_active_viewport_changed), item); g_signal_handlers_disconnect_by_func (screen, G_CALLBACK (on_screen_active_window_changed), item); g_signal_handlers_disconnect_by_func (screen, G_CALLBACK (on_screen_active_workspace_changed), item); g_signal_handlers_disconnect_by_func (screen, G_CALLBACK (on_screen_window_closed), item); g_signal_handlers_disconnect_by_func (window, G_CALLBACK (on_window_workspace_changed), item); g_signal_handlers_disconnect_by_func (window, G_CALLBACK (on_window_state_changed), item); + g_signal_handlers_disconnect_by_func (window, G_CALLBACK (on_window_icon_changed), item); g_signal_emit (G_OBJECT (item), task_item_signals[TASK_ITEM_CLOSED_SIGNAL], 0); } |