aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-19 12:25:34 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-19 12:25:34 +0800
commit1fde557d24599aff349ee52c5e7231e9887e01ae (patch)
tree07da8dd8b8eec04b668f8f1a26d2f1eeefe6a3c9
parent5f60698e29d2ae281beb3134b8a49e44b5d49a9a (diff)
downloadgsoc2013-evolution-1fde557d24599aff349ee52c5e7231e9887e01ae.tar
gsoc2013-evolution-1fde557d24599aff349ee52c5e7231e9887e01ae.tar.gz
gsoc2013-evolution-1fde557d24599aff349ee52c5e7231e9887e01ae.tar.bz2
gsoc2013-evolution-1fde557d24599aff349ee52c5e7231e9887e01ae.tar.lz
gsoc2013-evolution-1fde557d24599aff349ee52c5e7231e9887e01ae.tar.xz
gsoc2013-evolution-1fde557d24599aff349ee52c5e7231e9887e01ae.tar.zst
gsoc2013-evolution-1fde557d24599aff349ee52c5e7231e9887e01ae.zip
ref the store before running the async disconnect, otherwise we unref one
2004-03-19 Not Zed <NotZed@Ximian.com> * 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
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-component.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 47bff4a411..6f2b9d7275 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-19 Not Zed <NotZed@Ximian.com>
+
+ * mail-component.c (mail_component_remove_store): ref the store
+ before running the async disconnect, otherwise we unref one too
+ many times.
+
2004-03-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_setup): Don't set the
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);
}