diff options
Diffstat (limited to 'gio/gsocketconnection.c')
-rw-r--r-- | gio/gsocketconnection.c | 8 |
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); } /** |