Plug memory leak in lazy typelibs hash table

https://bugzilla.gnome.org/show_bug.cgi?id=669317
This commit is contained in:
Jesse van den Kieboom 2012-02-03 17:11:59 +01:00
parent 04cf2f480d
commit c2d79efd53

View File

@ -93,7 +93,9 @@ g_irepository_init (GIRepository *repository)
(GDestroyNotify) NULL, (GDestroyNotify) NULL,
(GDestroyNotify) g_typelib_free); (GDestroyNotify) g_typelib_free);
repository->priv->lazy_typelibs 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 repository->priv->info_by_gtype
= g_hash_table_new_full (g_direct_hash, g_direct_equal, = g_hash_table_new_full (g_direct_hash, g_direct_equal,
(GDestroyNotify) NULL, (GDestroyNotify) NULL,