aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-17 18:17:23 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-17 18:17:23 +0000
commitc16986ca2543af6d9e2ada54b001abde4c44b413 (patch)
tree0a6f8f3fae4a1c2bd3ab2d58098bbb26203911e9
parentbfe88c9a9d7f952d3f5781320bae3e13486218e3 (diff)
downloadgnunet-gtk-c16986ca2543af6d9e2ada54b001abde4c44b413.tar.gz
gnunet-gtk-c16986ca2543af6d9e2ada54b001abde4c44b413.zip
-do not use free'd object during shutdown
-rw-r--r--src/main/gnunet-gtk.c9
1 files 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,
150 GNUNET_SCHEDULER_cancel (p->restart_task); 150 GNUNET_SCHEDULER_cancel (p->restart_task);
151 p->restart_task = GNUNET_SCHEDULER_NO_TASK; 151 p->restart_task = GNUNET_SCHEDULER_NO_TASK;
152 } 152 }
153 g_signal_handler_disconnect (p->s, 153 /* This object is long gone, as part of the cleanup
154 p->sig_id); 154 of the window from gtk_window_dispose that is
155 triggered with the shutdown; so we should not
156 do it here. (Keeping commented out to show
157 that there is symmetry with initialization --
158 kind-of) */
159 /* g_signal_handler_disconnect (p->s, p->sig_id); */
155 GNUNET_CONTAINER_DLL_remove (p_head, 160 GNUNET_CONTAINER_DLL_remove (p_head,
156 p_tail, 161 p_tail,
157 p); 162 p);