gdbusname: Cleanup global tables

https://bugzilla.gnome.org/show_bug.cgi?id=711799
This commit is contained in:
Stef Walter
2013-11-09 20:15:56 +01:00
parent b96349d30f
commit 19ea5e4635
2 changed files with 2 additions and 0 deletions

View File

@@ -650,6 +650,7 @@ g_bus_own_name (GBusType bus_type,
if (map_id_to_client == NULL)
{
map_id_to_client = g_hash_table_new (g_direct_hash, g_direct_equal);
G_CLEANUP_IN (map_id_to_client, g_hash_table_unref, G_CLEANUP_PHASE_LATE);
}
g_hash_table_insert (map_id_to_client,
GUINT_TO_POINTER (client->id),

View File

@@ -574,6 +574,7 @@ g_bus_watch_name (GBusType bus_type,
if (map_id_to_client == NULL)
{
map_id_to_client = g_hash_table_new (g_direct_hash, g_direct_equal);
G_CLEANUP_IN (map_id_to_client, g_hash_table_unref, G_CLEANUP_PHASE_LATE);
}
g_hash_table_insert (map_id_to_client,
GUINT_TO_POINTER (client->id),