diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-11 04:37:03 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-11 04:43:38 +0800 |
commit | 54384b72172d92bb69d136b564a6096978f50695 (patch) | |
tree | f4a7bbb042ca773843cb833f06ae055783a8e202 /modules/calendar/e-cal-shell-view-private.c | |
parent | 243f84d37d2391ef58680ef2341ed35139104642 (diff) | |
download | gsoc2013-evolution-54384b72172d92bb69d136b564a6096978f50695.tar gsoc2013-evolution-54384b72172d92bb69d136b564a6096978f50695.tar.gz gsoc2013-evolution-54384b72172d92bb69d136b564a6096978f50695.tar.bz2 gsoc2013-evolution-54384b72172d92bb69d136b564a6096978f50695.tar.lz gsoc2013-evolution-54384b72172d92bb69d136b564a6096978f50695.tar.xz gsoc2013-evolution-54384b72172d92bb69d136b564a6096978f50695.tar.zst gsoc2013-evolution-54384b72172d92bb69d136b564a6096978f50695.zip |
ECalShellView: Disconnect "prepare-for-quit" handler on dispose().
This is another source of crashes after creating and destroying a second
shell window. The signal handler was left connected with the destroyed
shell window as the closure.
Diffstat (limited to 'modules/calendar/e-cal-shell-view-private.c')
-rw-r--r-- | modules/calendar/e-cal-shell-view-private.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c index 99de61c4ee..8f5ce93792 100644 --- a/modules/calendar/e-cal-shell-view-private.c +++ b/modules/calendar/e-cal-shell-view-private.c @@ -734,6 +734,13 @@ e_cal_shell_view_private_dispose (ECalShellView *cal_shell_view) if (priv->cal_shell_content != NULL) e_cal_shell_content_save_state (priv->cal_shell_content); + if (priv->prepare_for_quit_handler_id > 0) { + g_signal_handler_disconnect ( + priv->shell, + priv->prepare_for_quit_handler_id); + priv->prepare_for_quit_handler_id = 0; + } + if (priv->backend_error_handler_id > 0) { g_signal_handler_disconnect ( priv->client_cache, @@ -745,6 +752,7 @@ e_cal_shell_view_private_dispose (ECalShellView *cal_shell_view) g_clear_object (&priv->cal_shell_content); g_clear_object (&priv->cal_shell_sidebar); + g_clear_object (&priv->shell); g_clear_object (&priv->client_cache); if (priv->calendar_activity != NULL) { |