diff options
Diffstat (limited to 'src/fs_event_handler.c')
-rw-r--r-- | src/fs_event_handler.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/fs_event_handler.c b/src/fs_event_handler.c index 3748f7ea..8a4399cd 100644 --- a/src/fs_event_handler.c +++ b/src/fs_event_handler.c | |||
@@ -255,7 +255,7 @@ add_directory_entry (void *cls, | |||
255 | -1); | 255 | -1); |
256 | if (GNUNET_YES == | 256 | if (GNUNET_YES == |
257 | GNUNET_FS_uri_test_equal (xuri, uri)) | 257 | GNUNET_FS_uri_test_equal (xuri, uri)) |
258 | return; /* already present */ | 258 | return; /* already present */ |
259 | } | 259 | } |
260 | while (TRUE == gtk_tree_model_iter_next (tm, &iter)); | 260 | while (TRUE == gtk_tree_model_iter_next (tm, &iter)); |
261 | } | 261 | } |
@@ -417,11 +417,11 @@ move_children (GtkTreeModel *src_model, | |||
417 | GdkPixbuf *preview; | 417 | GdkPixbuf *preview; |
418 | guint percent_progress; | 418 | guint percent_progress; |
419 | guint percent_availability; | 419 | guint percent_availability; |
420 | char *filename; | 420 | gchar *filename; |
421 | char *uri_as_string; | 421 | gchar *uri_as_string; |
422 | char *status_colour; | 422 | gchar *status_colour; |
423 | struct SearchResult *search_result; | 423 | struct SearchResult *search_result; |
424 | char *mimetype; | 424 | gchar *mimetype; |
425 | guint applicability_rank; | 425 | guint applicability_rank; |
426 | guint availability_certainty; | 426 | guint availability_certainty; |
427 | gint availability_rank; | 427 | gint availability_rank; |
@@ -666,7 +666,7 @@ start_download (GtkTreeView *tree_view, | |||
666 | struct GNUNET_FS_Uri *uri; | 666 | struct GNUNET_FS_Uri *uri; |
667 | struct GNUNET_CONTAINER_MetaData *meta; | 667 | struct GNUNET_CONTAINER_MetaData *meta; |
668 | struct SearchResult *sr; | 668 | struct SearchResult *sr; |
669 | char *mime; | 669 | gchar *mime; |
670 | struct DownloadContext *dlc; | 670 | struct DownloadContext *dlc; |
671 | 671 | ||
672 | GNUNET_assert (tab != NULL); | 672 | GNUNET_assert (tab != NULL); |
@@ -684,13 +684,14 @@ start_download (GtkTreeView *tree_view, | |||
684 | -1); | 684 | -1); |
685 | dlc = GNUNET_malloc (sizeof (struct DownloadContext)); | 685 | dlc = GNUNET_malloc (sizeof (struct DownloadContext)); |
686 | dlc->uri = GNUNET_FS_uri_dup (uri); | 686 | dlc->uri = GNUNET_FS_uri_dup (uri); |
687 | dlc->mime = mime; | 687 | dlc->mime = GNUNET_strdup (mime); |
688 | dlc->filename = GNUNET_FS_meta_data_suggest_filename (meta); | 688 | dlc->filename = GNUNET_FS_meta_data_suggest_filename (meta); |
689 | dlc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); | 689 | dlc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); |
690 | dlc->rr = gtk_tree_row_reference_new (tm, path); | 690 | dlc->rr = gtk_tree_row_reference_new (tm, path); |
691 | dlc->sr = sr->result; | 691 | dlc->sr = sr->result; |
692 | dlc->anonymity = -1; | 692 | dlc->anonymity = -1; |
693 | GNUNET_GTK_open_download_as_dialog (dlc); | 693 | GNUNET_GTK_open_download_as_dialog (dlc); |
694 | g_free (mime); | ||
694 | } | 695 | } |
695 | 696 | ||
696 | 697 | ||
@@ -948,7 +949,7 @@ update_meta_data_views (GtkTreeView *tv, | |||
948 | if (pixbuf != NULL) | 949 | if (pixbuf != NULL) |
949 | { | 950 | { |
950 | gtk_image_set_from_pixbuf (image, pixbuf); | 951 | gtk_image_set_from_pixbuf (image, pixbuf); |
951 | /* FIXME: unref pixbuf? */ | 952 | g_object_unref (G_OBJECT (pixbuf)); |
952 | } | 953 | } |
953 | if (meta != NULL) | 954 | if (meta != NULL) |
954 | { | 955 | { |