aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-14 05:36:09 +0800
committerDan Winship <danw@src.gnome.org>2001-04-14 05:36:09 +0800
commit044fde0583993fae3ec3c511ac0a5058c5745302 (patch)
tree4d60e4dc752d79d4477c80f9d5897e6e8970baed /camel/providers/imap
parentdaea2fb545d62492d6b202adda8bdf52f08205eb (diff)
downloadgsoc2013-evolution-044fde0583993fae3ec3c511ac0a5058c5745302.tar.gz
gsoc2013-evolution-044fde0583993fae3ec3c511ac0a5058c5745302.tar.zst
gsoc2013-evolution-044fde0583993fae3ec3c511ac0a5058c5745302.zip
Plug leaks.
* camel-object.c (camel_object_hook_event): * camel-uid-cache.c (camel_uid_cache_get_new_uids): * camel-url.c (camel_url_new_with_base): Plug leaks. * camel-remote-store.c (camel_remote_store_init): Don't re-initialize the folders hash table. * providers/imap/camel-imap-store.c (imap_disconnect): Free authtypes since they'll be re-read on re-connect. (get_folder_info): Free folderinfos that we're discarding from the list. svn path=/trunk/; revision=9302
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-store.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 21211616ae..7ff46b9850 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -734,6 +734,13 @@ imap_disconnect (CamelService *service, gboolean clean, CamelException *ex)
store->subscribed_folders = NULL;
}
+ if (imap_store->authtypes) {
+ g_hash_table_foreach_remove (imap_store->authtypes,
+ free_key, NULL);
+ g_hash_table_destroy (imap_store->authtypes);
+ imap_store->authtypes = NULL;
+ }
+
if (store->namespace && !(store->parameters & IMAP_PARAM_OVERRIDE_NAMESPACE)) {
g_free (store->namespace);
store->namespace = NULL;
@@ -1148,8 +1155,10 @@ get_folder_info (CamelStore *store, const char *top, gboolean fast,
return NULL;
if (folders->len) {
fi = folders->pdata[0];
- if (!fi->url)
+ if (!fi->url) {
+ camel_folder_info_free (fi);
g_ptr_array_remove_index (folders, 0);
+ }
}
/* If we want to look at only subscribed folders AND