[evolution-mapi] Bug #626860 - Crash while unsubscribing folder



commit 911673052b8e939ceca24a003ef7ad2e6d1c85fb
Author: Punit Jain <jpunit novell com>
Date:   Mon Aug 16 12:42:04 2010 +0530

    Bug #626860 - Crash while unsubscribing folder
    
    Crash in mapi_folders_hash_table_type_lookup

 src/camel/camel-mapi-store.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index d0bebe9..f677e7c 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -1845,7 +1845,7 @@ mapi_unsubscribe_folder(CamelStore *store, const gchar *folder_name, GError **er
 	CamelFolderInfo *fi;
 	CamelStoreInfo *si;
 	gchar *parent_name = NULL;
-	const gchar *fid = NULL;
+	const gchar *fid = NULL, *use_folder_name = folder_name;
 	gchar *f_name = NULL;
 
 	CamelMapiStore *mapi_store = CAMEL_MAPI_STORE (store);
@@ -1874,7 +1874,7 @@ mapi_unsubscribe_folder(CamelStore *store, const gchar *folder_name, GError **er
 		camel_store_folder_unsubscribed (store, fi);
 		camel_folder_info_free (fi);
 	} else {
-		guint folder_type = mapi_folders_hash_table_type_lookup (mapi_store, folder_name);
+		guint folder_type = mapi_folders_hash_table_type_lookup (mapi_store, use_folder_name);
 		exchange_mapi_remove_esource(url, folder_name, fid, folder_type);
 	}
 	camel_store_summary_info_free((CamelStoreSummary *)mapi_store->summary, si);



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