[gobject-introspection/gnome-3-34] girepository: Fix memory leak
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/gnome-3-34] girepository: Fix memory leak
- Date: Mon, 14 Oct 2019 07:50:33 +0000 (UTC)
commit 8b7145fee847038b17012243ed90eda8e968dbcb
Author: Philip Chimento <philip endlessm com>
Date: Thu Oct 10 13:34:23 2019 -0700
girepository: Fix memory leak
In g_irepository_get_object_gtype_interfaces()
girepository/girepository.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 08149da8..fd668c5a 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -1036,6 +1036,8 @@ g_irepository_get_object_gtype_interfaces (GIRepository *repository,
g_hash_table_insert (repository->priv->interfaces_for_gtype, (gpointer) gtype,
cache);
+
+ g_free (interfaces);
}
*n_interfaces_out = cache->n_interfaces;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]