From 1fde557d24599aff349ee52c5e7231e9887e01ae Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 19 Mar 2004 04:25:34 +0000 Subject: ref the store before running the async disconnect, otherwise we unref one 2004-03-19 Not Zed * mail-component.c (mail_component_remove_store): ref the store before running the async disconnect, otherwise we unref one too many times. svn path=/trunk/; revision=25124 --- mail/mail-component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index 73d178f47a..bb7c19979f 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -899,7 +899,8 @@ 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