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
This commit is contained in:

committed by
Jeffrey Stedfast

parent
a4e278519d
commit
e235037186
@ -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>
|
2003-11-17 Jeffrey Stedfast <fejj@ximian.com>
|
||||||
|
|
||||||
* providers/local/camel-mbox-store.c (create_folder): Fixed an
|
* providers/local/camel-mbox-store.c (create_folder): Fixed an
|
||||||
|
@ -100,6 +100,8 @@ camel_session_init (CamelSession *session)
|
|||||||
session->priv->thread_queue = NULL;
|
session->priv->thread_queue = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* NOTE: this code ruins all chance of ever having more than 1 session object */
|
||||||
static gboolean
|
static gboolean
|
||||||
camel_session_destroy_provider (gpointer key, gpointer value, gpointer user_data)
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
camel_session_finalise (CamelObject *o)
|
camel_session_finalise (CamelObject *o)
|
||||||
@ -123,8 +126,7 @@ camel_session_finalise (CamelObject *o)
|
|||||||
e_thread_destroy(session->priv->thread_queue);
|
e_thread_destroy(session->priv->thread_queue);
|
||||||
|
|
||||||
g_free(session->storage_path);
|
g_free(session->storage_path);
|
||||||
g_hash_table_foreach_remove (session->providers,
|
/*g_hash_table_foreach_remove (session->providers, camel_session_destroy_provider, NULL);*/
|
||||||
camel_session_destroy_provider, NULL);
|
|
||||||
g_hash_table_destroy (session->providers);
|
g_hash_table_destroy (session->providers);
|
||||||
|
|
||||||
g_mutex_free(session->priv->lock);
|
g_mutex_free(session->priv->lock);
|
||||||
|
Reference in New Issue
Block a user