diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-26 19:42:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-26 19:42:27 +0000 |
commit | d58e25d73ee221d91d56244b7c82e4db0b267ced (patch) | |
tree | 9bfcf312febba9cb31f1e38feff0fca2293b1d0c | |
parent | 21ec6b4fe3f737fee3349dd0328905db38b21932 (diff) | |
download | gnunet-gtk-d58e25d73ee221d91d56244b7c82e4db0b267ced.tar.gz gnunet-gtk-d58e25d73ee221d91d56244b7c82e4db0b267ced.zip |
-fix #2037
-rw-r--r-- | src/fs/gnunet-fs-gtk-edit_publish_dialog.c | 1 | ||||
-rw-r--r-- | src/fs/gnunet-fs-gtk-main_window_file_publish.c | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c index aa111bc0..b721d1f2 100644 --- a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c +++ b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c | |||
@@ -915,7 +915,6 @@ file_information_extract (void *cls, struct GNUNET_FS_FileInformation *fi, | |||
915 | GtkImage *img; | 915 | GtkImage *img; |
916 | GdkPixbuf *pixbuf; | 916 | GdkPixbuf *pixbuf; |
917 | int year; | 917 | int year; |
918 | time_t tp; | ||
919 | GtkListStore *ls; | 918 | GtkListStore *ls; |
920 | 919 | ||
921 | ls = GTK_LIST_STORE (gtk_builder_get_object | 920 | ls = GTK_LIST_STORE (gtk_builder_get_object |
diff --git a/src/fs/gnunet-fs-gtk-main_window_file_publish.c b/src/fs/gnunet-fs-gtk-main_window_file_publish.c index 7172e334..443558a7 100644 --- a/src/fs/gnunet-fs-gtk-main_window_file_publish.c +++ b/src/fs/gnunet-fs-gtk-main_window_file_publish.c | |||
@@ -1628,7 +1628,7 @@ add_namespace_to_ts (void *cls, const char *name, const GNUNET_HashCode * id) | |||
1628 | name_utf8 = GNUNET_GTK_from_loc_to_utf8 ((char *) name); | 1628 | name_utf8 = GNUNET_GTK_from_loc_to_utf8 ((char *) name); |
1629 | gtk_tree_store_insert_with_values (ts, &iter, NULL, G_MAXINT, 0, name_utf8, 1, | 1629 | gtk_tree_store_insert_with_values (ts, &iter, NULL, G_MAXINT, 0, name_utf8, 1, |
1630 | uc.ns, 2, NULL /* last-id */ , | 1630 | uc.ns, 2, NULL /* last-id */ , |
1631 | 3, NULL /* last-uri */ , | 1631 | 3, NULL /* last-uri (as string!) */ , |
1632 | 4, NULL /* meta */ , | 1632 | 4, NULL /* meta */ , |
1633 | 5, NULL /* next-ID */ , | 1633 | 5, NULL /* next-ID */ , |
1634 | 6, NULL /* last-description */ , | 1634 | 6, NULL /* last-description */ , |
@@ -1645,14 +1645,11 @@ add_namespace_to_ts (void *cls, const char *name, const GNUNET_HashCode * id) | |||
1645 | static void | 1645 | static void |
1646 | free_pseudonym_tree_store (GtkTreeModel * tm, GtkTreeIter * iter) | 1646 | free_pseudonym_tree_store (GtkTreeModel * tm, GtkTreeIter * iter) |
1647 | { | 1647 | { |
1648 | struct GNUNET_FS_Uri *uri; | ||
1649 | struct GNUNET_CONTAINER_MetaData *meta; | 1648 | struct GNUNET_CONTAINER_MetaData *meta; |
1650 | struct GNUNET_FS_Namespace *ns; | 1649 | struct GNUNET_FS_Namespace *ns; |
1651 | GtkTreeIter child; | 1650 | GtkTreeIter child; |
1652 | 1651 | ||
1653 | gtk_tree_model_get (tm, iter, 1, &ns, 3, &uri, 4, &meta, -1); | 1652 | gtk_tree_model_get (tm, iter, 1, &ns, 4, &meta, -1); |
1654 | if (uri != NULL) | ||
1655 | GNUNET_FS_uri_destroy (uri); | ||
1656 | if (meta != NULL) | 1653 | if (meta != NULL) |
1657 | GNUNET_CONTAINER_meta_data_destroy (meta); | 1654 | GNUNET_CONTAINER_meta_data_destroy (meta); |
1658 | if (ns != NULL) | 1655 | if (ns != NULL) |