summaryrefslogtreecommitdiff
path: root/gio/gsocketconnection.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-09-03 08:33:13 -0400
committerDan Winship <danw@gnome.org>2012-09-03 08:33:13 -0400
commit3389e6b686d4aad739780927b4db333e7d8af0c0 (patch)
treea5f6717b41d14aa9872149bc128092703d6c4fcb /gio/gsocketconnection.c
parent27f34bc1a3cf658929735108d927b710a24592f1 (diff)
downloadglib-wip/free.tar.gz
gio stuffwip/free
Diffstat (limited to 'gio/gsocketconnection.c')
-rw-r--r--gio/gsocketconnection.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gio/gsocketconnection.c b/gio/gsocketconnection.c
index f9bf5c892..dc994d4e6 100644
--- a/gio/gsocketconnection.c
+++ b/gio/gsocketconnection.c
@@ -557,13 +557,9 @@ static GHashTable *connection_factories = NULL;
G_LOCK_DEFINE_STATIC(connection_factories);
void
-_g_socket_connection_factory_deinit (void)
+g_socket_connection_factory_cleanup (void)
{
- if (connection_factories != NULL)
- {
- g_hash_table_unref (connection_factories);
- connection_factories = NULL;
- }
+ g_clear_pointer (&connection_factories, g_hash_table_unref);
}
/**