mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Plug memory leak in lazy typelibs hash table
https://bugzilla.gnome.org/show_bug.cgi?id=669317
This commit is contained in:
parent
04cf2f480d
commit
c2d79efd53
@ -93,7 +93,9 @@ g_irepository_init (GIRepository *repository)
|
||||
(GDestroyNotify) NULL,
|
||||
(GDestroyNotify) g_typelib_free);
|
||||
repository->priv->lazy_typelibs
|
||||
= g_hash_table_new (g_str_hash, g_str_equal);
|
||||
= g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||
(GDestroyNotify) g_free,
|
||||
(GDestroyNotify) NULL);
|
||||
repository->priv->info_by_gtype
|
||||
= g_hash_table_new_full (g_direct_hash, g_direct_equal,
|
||||
(GDestroyNotify) NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user