aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-edit_publish_dialog.c')
-rw-r--r--src/fs/gnunet-fs-gtk-edit_publish_dialog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
index 34dd9613..955cf655 100644
--- a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
+++ b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
@@ -530,6 +530,7 @@ GNUNET_GTK_edit_publication_metadata_preview_file_chooser_button_file_set_cb (
530 (builder, 530 (builder,
531 "GNUNET_GTK_edit_publication_metadata_preview_image")); 531 "GNUNET_GTK_edit_publication_metadata_preview_image"));
532 gtk_image_set_from_file (image, fn); 532 gtk_image_set_from_file (image, fn);
533 g_free (fn);
533 state->preview_changed = GNUNET_YES; 534 state->preview_changed = GNUNET_YES;
534} 535}
535 536
@@ -589,7 +590,7 @@ preserve_meta_items (void *cls, const char *plugin_name,
589 GNUNET_break (0); 590 GNUNET_break (0);
590 return 0; 591 return 0;
591 } 592 }
592 593 /* FIXME: make sure this is all correct UTF-8-wise */
593 keep = GNUNET_NO; 594 keep = GNUNET_NO;
594 switch (format) 595 switch (format)
595 { 596 {
@@ -808,6 +809,7 @@ file_information_update (void *cls, struct GNUNET_FS_FileInformation *fi,
808 } 809 }
809 g_object_unref (finfo); 810 g_object_unref (finfo);
810 g_object_unref (f); 811 g_object_unref (f);
812 g_free (fn);
811 } 813 }
812 GNUNET_CONTAINER_meta_data_destroy (nm); 814 GNUNET_CONTAINER_meta_data_destroy (nm);
813 815
@@ -1016,6 +1018,7 @@ file_information_extract (void *cls, struct GNUNET_FS_FileInformation *fi,
1016 1018
1017/** 1019/**
1018 * Open the dialog to edit file information data. 1020 * Open the dialog to edit file information data.
1021 * short_fn MUST be UTF-8-encoded
1019 */ 1022 */
1020void 1023void
1021GNUNET_FS_GTK_edit_publish_dialog (GtkBuilder *builder, 1024GNUNET_FS_GTK_edit_publish_dialog (GtkBuilder *builder,