diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_publish-dialog.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk_publish-dialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c index b5d6e690..84564a91 100644 --- a/src/fs/gnunet-fs-gtk_publish-dialog.c +++ b/src/fs/gnunet-fs-gtk_publish-dialog.c | |||
@@ -1608,7 +1608,7 @@ scan_file_or_directory (struct MainPublishingDialogContext *ctx, | |||
1608 | { | 1608 | { |
1609 | struct AddDirClientContext *adcc; | 1609 | struct AddDirClientContext *adcc; |
1610 | 1610 | ||
1611 | adcc = GNUNET_malloc (sizeof (struct AddDirClientContext)); | 1611 | adcc = GNUNET_new (struct AddDirClientContext); |
1612 | adcc->ctx = ctx; | 1612 | adcc->ctx = ctx; |
1613 | GNUNET_CONTAINER_DLL_insert_tail (ctx->adddir_head, ctx->adddir_tail, adcc); | 1613 | GNUNET_CONTAINER_DLL_insert_tail (ctx->adddir_head, ctx->adddir_tail, adcc); |
1614 | adcc->directory_scan_bo = *bo; | 1614 | adcc->directory_scan_bo = *bo; |
@@ -1961,7 +1961,7 @@ GNUNET_GTK_master_publish_dialog_edit_button_clicked_cb (GtkWidget * dummy, | |||
1961 | struct MainPublishingDialogContext *ctx = user_data; | 1961 | struct MainPublishingDialogContext *ctx = user_data; |
1962 | struct EditPublishContext *epc; | 1962 | struct EditPublishContext *epc; |
1963 | 1963 | ||
1964 | epc = GNUNET_malloc (sizeof (struct EditPublishContext)); | 1964 | epc = GNUNET_new (struct EditPublishContext); |
1965 | epc->tm = ctx->file_info_treemodel; | 1965 | epc->tm = ctx->file_info_treemodel; |
1966 | if (! gtk_tree_selection_get_selected (ctx->file_info_selection, NULL, &epc->iter)) | 1966 | if (! gtk_tree_selection_get_selected (ctx->file_info_selection, NULL, &epc->iter)) |
1967 | { | 1967 | { |