From 5f29bc36686d558ed84a8ea9baf3571cedb82687 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 17 May 2006 15:31:55 +0000 Subject: Ref the store before removing the store from our hash and cache. Should 2006-05-04 Jeffrey Stedfast * mail-component.c (mail_component_remove_store): Ref the store before removing the store from our hash and cache. Should fix Novell bug #166987. svn path=/trunk/; revision=31994 --- mail/mail-component.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index c6c6298a1c..9f48497891 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -1231,6 +1231,7 @@ mail_component_remove_store (MailComponent *component, CamelStore *store) if (!(si = g_hash_table_lookup (priv->store_hash, store))) return; + camel_object_ref (store); g_hash_table_remove (priv->store_hash, store); si->removed = 1; store_info_unref(si); @@ -1240,8 +1241,7 @@ mail_component_remove_store (MailComponent *component, CamelStore *store) mail_note_store_remove (store); em_folder_tree_model_remove_store (priv->model, store); - - camel_object_ref(store); + mail_async_event_emit (priv->async_event, MAIL_ASYNC_THREAD, (MailAsyncFunc) store_disconnect, store, NULL, NULL); } -- cgit