[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3493 - GNUnet/src/applications/fs/fsui
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3493 - GNUnet/src/applications/fs/fsui |
Date: |
Tue, 17 Oct 2006 22:06:05 -0700 (PDT) |
Author: grothoff
Date: 2006-10-17 22:06:04 -0700 (Tue, 17 Oct 2006)
New Revision: 3493
Modified:
GNUnet/src/applications/fs/fsui/fsui.c
Log:
free
Modified: GNUnet/src/applications/fs/fsui/fsui.c
===================================================================
--- GNUnet/src/applications/fs/fsui/fsui.c 2006-10-18 05:04:07 UTC (rev
3492)
+++ GNUnet/src/applications/fs/fsui/fsui.c 2006-10-18 05:06:04 UTC (rev
3493)
@@ -24,8 +24,6 @@
* @author Christian Grothoff
*
* TODO:
- * - upload tree representation (currently flat list!)
- * - download tree free memory
* - resume signaling: some minor fields uninitialized
* - better ETA calculation for download resume
*/
@@ -348,10 +346,17 @@
*/
static void freeDownloadList(FSUI_DownloadList * list) {
FSUI_DownloadList * next;
+ int i;
while (list != NULL) {
freeDownloadList(list->child);
- /* FIXME: free memory! */
+ ECRS_freeUri(list->uri);
+ FREE(list->filename);
+ for (i=0;i<list->completedDownloadsCount;i++)
+ ECRS_freeUri(list->completedDownloads[i]);
+ GROW(list->completedDownloads,
+ list->completedDownloadsCount,
+ 0);
next = list->next;
FREE(list);
list = next;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3493 - GNUnet/src/applications/fs/fsui,
grothoff <=