aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-event_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-event_handler.c')
-rw-r--r--src/fs/gnunet-fs-gtk-event_handler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c
index 26790f01..a77bd65d 100644
--- a/src/fs/gnunet-fs-gtk-event_handler.c
+++ b/src/fs/gnunet-fs-gtk-event_handler.c
@@ -135,6 +135,9 @@ abort_download_ctx_menu (GtkMenuItem *item, gpointer user_data);
135static void 135static void
136copy_uri_to_clipboard_ctx_menu (GtkMenuItem *item, gpointer user_data); 136copy_uri_to_clipboard_ctx_menu (GtkMenuItem *item, gpointer user_data);
137 137
138static void
139free_search_result (struct SearchResult *sr);
140
138static gboolean 141static gboolean
139search_list_popup (GtkTreeView *tv, struct SearchTab *tab, GdkEventButton *event_button) 142search_list_popup (GtkTreeView *tv, struct SearchTab *tab, GdkEventButton *event_button)
140{ 143{
@@ -1268,6 +1271,8 @@ clear_downloads (GtkButton * button, gpointer user_data)
1268 gtk_tree_model_get (tm, &iter, 9, &sr, -1); 1271 gtk_tree_model_get (tm, &iter, 9, &sr, -1);
1269 if ((sr->download != NULL) && (sr->download->is_done == GNUNET_YES)) 1272 if ((sr->download != NULL) && (sr->download->is_done == GNUNET_YES))
1270 GNUNET_FS_download_stop (sr->download->dc, GNUNET_YES); 1273 GNUNET_FS_download_stop (sr->download->dc, GNUNET_YES);
1274 else
1275 free_search_result (sr);
1271 } 1276 }
1272 while (TRUE == gtk_tree_model_iter_next (tm, &iter)); 1277 while (TRUE == gtk_tree_model_iter_next (tm, &iter));
1273} 1278}