aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-22 06:53:15 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-22 06:53:15 +0800
commitcb92bb76a6b0b8001393600fc4dbfe65b807e624 (patch)
tree58acdc7eb659589cbe42fc46648ef33b72405677 /camel/providers/imap
parentffcb9b625c4f5e4191cb465df865f841171eec12 (diff)
downloadgsoc2013-evolution-cb92bb76a6b0b8001393600fc4dbfe65b807e624.tar
gsoc2013-evolution-cb92bb76a6b0b8001393600fc4dbfe65b807e624.tar.gz
gsoc2013-evolution-cb92bb76a6b0b8001393600fc4dbfe65b807e624.tar.bz2
gsoc2013-evolution-cb92bb76a6b0b8001393600fc4dbfe65b807e624.tar.lz
gsoc2013-evolution-cb92bb76a6b0b8001393600fc4dbfe65b807e624.tar.xz
gsoc2013-evolution-cb92bb76a6b0b8001393600fc4dbfe65b807e624.tar.zst
gsoc2013-evolution-cb92bb76a6b0b8001393600fc4dbfe65b807e624.zip
Store the CamelFolderInfo tree that was returned from
2001-05-21 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_info_online): Store the CamelFolderInfo tree that was returned from camel_folder_info_build() in a new variable, 'tree', rather than 'fi' since we later use 'fi' when syncing folders. Not only does this fix a memory leak, but it also fixes the bug where the user would only see the last folder in the folder list and/or it's subfolders. svn path=/trunk/; revision=9911
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-store.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index bcdfc9f935..5138cda658 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -1053,7 +1053,7 @@ get_folder_info_online (CamelStore *store, const char *top,
GPtrArray *folders;
const char *name;
char *pattern, *status, *p;
- CamelFolderInfo *fi;
+ CamelFolderInfo *fi, *tree;
int i;
if (!camel_remote_store_connected (CAMEL_REMOTE_STORE (store), ex))
@@ -1133,10 +1133,10 @@ get_folder_info_online (CamelStore *store, const char *top,
}
/* Assemble. */
- fi = camel_folder_info_build (folders, name, imap_store->dir_sep, TRUE);
+ tree = camel_folder_info_build (folders, name, imap_store->dir_sep, TRUE);
if (flags & CAMEL_STORE_FOLDER_INFO_FAST) {
g_ptr_array_free (folders, TRUE);
- return fi;
+ return tree;
}
/* Get unread counts. Sync flag changes to the server first so
@@ -1185,7 +1185,7 @@ get_folder_info_online (CamelStore *store, const char *top,
}
g_ptr_array_free (folders, TRUE);
- return fi;
+ return tree;
}
static gboolean