From 63404e5dc1d21c07abbaa29d0223695d479523a0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 13 Dec 2011 13:10:30 -0500 Subject: MailFolderCache: Fix a double-free on unsubscribe. The 'folders' hash table has a GDestroyNotify callback now, but we were still freeing the folder_info struct explicitly. --- mail/mail-folder-cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index 51a4b474df..eb046c5406 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -630,9 +630,8 @@ store_folder_unsubscribed_cb (CamelStore *store, if (si) { mfi = g_hash_table_lookup (si->folders, info->full_name); if (mfi) { - g_hash_table_remove (si->folders, mfi->full_name); unset_folder_info (cache, mfi, TRUE, TRUE); - free_folder_info (mfi); + g_hash_table_remove (si->folders, mfi->full_name); } } g_mutex_unlock (cache->priv->stores_mutex); -- cgit v1.2.3