[gobject-introspection] Plug memory leak in lazy typelibs hash table
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Plug memory leak in lazy typelibs hash table
- Date: Sun, 5 Feb 2012 15:36:07 +0000 (UTC)
commit 553d0bd26af9ff732739f3da8be0c887fe2a490d
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Fri Feb 3 17:11:59 2012 +0100
Plug memory leak in lazy typelibs hash table
https://bugzilla.gnome.org/show_bug.cgi?id=669317
girepository/girepository.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 5d561c2..1384c0e 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]