diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-11-19 06:50:07 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-11-19 06:50:07 +0800 |
commit | e235037186b7e415a1afe40a6d8c7e6f2b16011b (patch) | |
tree | 03568ba83fa169d5a6c94dd8ef4824306a58a84a /camel | |
parent | a4e278519dfa22fefd717b593796daa48c4af51e (diff) | |
download | gsoc2013-evolution-e235037186b7e415a1afe40a6d8c7e6f2b16011b.tar.gz gsoc2013-evolution-e235037186b7e415a1afe40a6d8c7e6f2b16011b.tar.zst gsoc2013-evolution-e235037186b7e415a1afe40a6d8c7e6f2b16011b.zip |
Don't destroy the providers as it mans we can never ever have more than 1
2003-11-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-session.c (camel_session_finalise): Don't destroy the
providers as it mans we can never ever have more than 1 session
object. See bug #51119 for details.
svn path=/trunk/; revision=23431
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-session.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 0cbeb8c483..97a65efeeb 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2003-11-18 Jeffrey Stedfast <fejj@ximian.com> + + * camel-session.c (camel_session_finalise): Don't destroy the + providers as it mans we can never ever have more than 1 session + object. See bug #51119 for details. + 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (create_folder): Fixed an diff --git a/camel/camel-session.c b/camel/camel-session.c index c4e369b10b..07c6801824 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -100,6 +100,8 @@ camel_session_init (CamelSession *session) session->priv->thread_queue = NULL; } +#if 0 +/* NOTE: this code ruins all chance of ever having more than 1 session object */ static gboolean camel_session_destroy_provider (gpointer key, gpointer value, gpointer user_data) { @@ -112,6 +114,7 @@ camel_session_destroy_provider (gpointer key, gpointer value, gpointer user_data } return TRUE; } +#endif static void camel_session_finalise (CamelObject *o) @@ -123,8 +126,7 @@ camel_session_finalise (CamelObject *o) e_thread_destroy(session->priv->thread_queue); g_free(session->storage_path); - g_hash_table_foreach_remove (session->providers, - camel_session_destroy_provider, NULL); + /*g_hash_table_foreach_remove (session->providers, camel_session_destroy_provider, NULL);*/ g_hash_table_destroy (session->providers); g_mutex_free(session->priv->lock); |