From c16986ca2543af6d9e2ada54b001abde4c44b413 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 17 Dec 2014 18:17:23 +0000 Subject: -do not use free'd object during shutdown --- src/main/gnunet-gtk.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/gnunet-gtk.c b/src/main/gnunet-gtk.c index 0ce872e3..fa5cf4a6 100644 --- a/src/main/gnunet-gtk.c +++ b/src/main/gnunet-gtk.c @@ -150,8 +150,13 @@ cleanup_task (void *cls, GNUNET_SCHEDULER_cancel (p->restart_task); p->restart_task = GNUNET_SCHEDULER_NO_TASK; } - g_signal_handler_disconnect (p->s, - p->sig_id); + /* This object is long gone, as part of the cleanup + of the window from gtk_window_dispose that is + triggered with the shutdown; so we should not + do it here. (Keeping commented out to show + that there is symmetry with initialization -- + kind-of) */ + /* g_signal_handler_disconnect (p->s, p->sig_id); */ GNUNET_CONTAINER_DLL_remove (p_head, p_tail, p); -- cgit v1.2.3