diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c index ea3397d8..d5974479 100644 --- a/src/fs/gnunet-fs-gtk.c +++ b/src/fs/gnunet-fs-gtk.c | |||
@@ -230,13 +230,23 @@ GNUNET_GTK_main_window_configure_event_cb (GtkWidget *main_window, | |||
230 | * @param tc scheduler context, unused | 230 | * @param tc scheduler context, unused |
231 | */ | 231 | */ |
232 | static void | 232 | static void |
233 | shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 233 | shutdown_task (void *cls, |
234 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
234 | { | 235 | { |
235 | struct SearchLookup *sl; | 236 | struct SearchLookup *sl; |
236 | struct PseuLookupContext *lctx; | 237 | struct PseuLookupContext *lctx; |
238 | struct SearchResult *sr; | ||
237 | 239 | ||
238 | GNUNET_GTK_tray_icon_destroy (); | 240 | GNUNET_GTK_tray_icon_destroy (); |
239 | if (fs != NULL) | 241 | while (NULL != (sr = pl_head)) |
242 | { | ||
243 | GNUNET_FS_probe_stop (sr->probe); | ||
244 | sr->probe = NULL; | ||
245 | GNUNET_CONTAINER_DLL_remove (pl_head, | ||
246 | pl_tail, | ||
247 | sr); | ||
248 | } | ||
249 | if (NULL != fs) | ||
240 | { | 250 | { |
241 | GNUNET_FS_stop (fs); | 251 | GNUNET_FS_stop (fs); |
242 | fs = NULL; | 252 | fs = NULL; |