gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18891 - gnunet-gtk/src/fs


From: gnunet
Subject: [GNUnet-SVN] r18891 - gnunet-gtk/src/fs
Date: Sun, 1 Jan 2012 22:13:21 +0100

Author: grothoff
Date: 2012-01-01 22:13:21 +0100 (Sun, 01 Jan 2012)
New Revision: 18891

Modified:
   gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
Log:
-use dl consistently

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c     2012-01-01 21:13:04 UTC 
(rev 18890)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c     2012-01-01 21:13:21 UTC 
(rev 18891)
@@ -767,7 +767,7 @@
   struct GNUNET_CONTAINER_MetaData *meta;
   struct SearchResult *sr;
   gchar *mime;
-  struct DownloadContext *dlc;
+  struct DownloadContext *dc;
   char *buf;
   char *tmp;
   size_t tmplen;
@@ -835,18 +835,17 @@
   GNUNET_free_non_null (filename);
 
   /* now setup everything for the save-as dialog */
-  dlc = GNUNET_malloc (sizeof (struct DownloadContext));
-  dlc->uri = GNUNET_FS_uri_dup (uri);
-  dlc->mime = (NULL != mime) ? GNUNET_strdup (mime) : NULL;
-  dlc->filename = buf;
-  dlc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta);
-  dlc->rr = gtk_tree_row_reference_new (tm, path);
-  dlc->sr = sr->result;
-  dlc->anonymity = -1;
-  dlc->is_recursive = sdc->recursive;
-  dlc->tab = tab;
-  GNUNET_FS_GTK_open_download_as_dialog (dlc);
-  g_free (mime);
+  dc = GNUNET_malloc (sizeof (struct DownloadContext));
+  dc->uri = GNUNET_FS_uri_dup (uri);
+  dc->mime = mime;
+  dc->filename = buf;
+  dc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta);
+  dc->rr = gtk_tree_row_reference_new (tm, path);
+  dc->sr = sr->result;
+  dc->anonymity = -1;
+  dc->is_recursive = sdc->recursive;
+  dc->tab = tab;
+  GNUNET_FS_GTK_open_download_as_dialog (dc);
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]