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.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c
index bae6a632..33b9f147 100644
--- a/src/fs/gnunet-fs-gtk-event_handler.c
+++ b/src/fs/gnunet-fs-gtk-event_handler.c
@@ -495,7 +495,17 @@ download_lost_parent (struct DownloadEntry *de, uint64_t size,
495 tm_old = gtk_tree_row_reference_get_model (rr_old); 495 tm_old = gtk_tree_row_reference_get_model (rr_old);
496 path = gtk_tree_row_reference_get_path (rr_old); 496 path = gtk_tree_row_reference_get_path (rr_old);
497 gtk_tree_row_reference_free (rr_old); 497 gtk_tree_row_reference_free (rr_old);
498 gtk_tree_model_get_iter (tm_old, &iter_old, path); 498 if (NULL == path)
499 {
500 GNUNET_break (0);
501 return NULL;
502 }
503 if (TRUE != gtk_tree_model_get_iter (tm_old, &iter_old, path))
504 {
505 GNUNET_break (0);
506 gtk_tree_path_free (path);
507 return NULL;
508 }
499 gtk_tree_path_free (path); 509 gtk_tree_path_free (path);
500 move_children (tm_old, &iter_old, model, &iter); 510 move_children (tm_old, &iter_old, model, &iter);
501 while (TRUE == gtk_tree_model_iter_children (model, &child, &iter)) 511 while (TRUE == gtk_tree_model_iter_children (model, &child, &iter))