mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 12:19:20 +02:00
gdbusintrospection: Free up cache when done with it
https://bugzilla.gnome.org/show_bug.cgi?id=711799
This commit is contained in:
@@ -2145,7 +2145,11 @@ g_dbus_interface_info_cache_release (GDBusInterfaceInfo *info)
|
|||||||
if (cache->use_count == 0)
|
if (cache->use_count == 0)
|
||||||
{
|
{
|
||||||
g_hash_table_remove (info_cache, info);
|
g_hash_table_remove (info_cache, info);
|
||||||
/* could nuke info_cache itself if empty */
|
if (g_hash_table_size (info_cache) == 0)
|
||||||
|
{
|
||||||
|
g_hash_table_unref (info_cache);
|
||||||
|
info_cache = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
G_UNLOCK (info_cache_lock);
|
G_UNLOCK (info_cache_lock);
|
||||||
|
Reference in New Issue
Block a user