mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-02 19:59:21 +02:00
gdbusname: Cleanup global tables
https://bugzilla.gnome.org/show_bug.cgi?id=711799
This commit is contained in:
@@ -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),
|
||||
|
@@ -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),
|
||||
|
Reference in New Issue
Block a user