diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-06-03 03:15:22 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-06-03 03:15:22 +0800 |
commit | fd1304e14ff70ade296718c5b3ec321fa68325a4 (patch) | |
tree | 96d02af59a945b9dadd99327dc179862e7c0eb97 /camel/camel-session.c | |
parent | 01bb498fbbe35a33c89ad9ffe4a02fd260e7cd61 (diff) | |
download | gsoc2013-evolution-fd1304e14ff70ade296718c5b3ec321fa68325a4.tar.gz gsoc2013-evolution-fd1304e14ff70ade296718c5b3ec321fa68325a4.tar.zst gsoc2013-evolution-fd1304e14ff70ade296718c5b3ec321fa68325a4.zip |
Don't ref the services in the cache.
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
* camel-session.c: Don't ref the services in the cache.
svn path=/trunk/; revision=3396
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r-- | camel/camel-session.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c index bc8393b7ef..48424d5a2e 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -48,17 +48,10 @@ camel_session_init (CamelSession *session) } static void -hash_unref_service(void *key, void *value, void *data) -{ - gtk_object_unref((GtkObject *)value); -} - -static void camel_session_finalise(GtkObject *o) { CamelSession *session = (CamelSession *)o; - g_hash_table_foreach(session->service_cache, hash_unref_service, 0); g_hash_table_destroy(session->service_cache); g_hash_table_destroy(session->providers); @@ -192,7 +185,6 @@ camel_session_list_providers (CamelSession *session, gboolean load) static void service_cache_remove(CamelService *service, CamelSession *session) { - gtk_object_unref(GTK_OBJECT(service)); g_hash_table_remove(session->service_cache, service->url); } @@ -249,7 +241,6 @@ camel_session_get_service (CamelSession *session, const char *url_string, service = camel_service_new (provider->object_types[type], session, url, ex); if (service) { g_hash_table_insert(session->service_cache, url, service); - gtk_object_ref(GTK_OBJECT(service)); gtk_signal_connect((GtkObject *)service, "destroy", service_cache_remove, session); } return service; |