[gobject-introspection] givfuncinfo: Fix memory leak
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] givfuncinfo: Fix memory leak
- Date: Fri, 25 May 2012 20:37:14 +0000 (UTC)
commit 6e25b3849692cd9afcfbb4152e7e8e213fd37917
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri May 25 16:32:44 2012 -0400
givfuncinfo: Fix memory leak
The field info wasn't being freed after it was used
girepository/givfuncinfo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/girepository/givfuncinfo.c b/girepository/givfuncinfo.c
index 462521b..f9ba64a 100644
--- a/girepository/givfuncinfo.c
+++ b/girepository/givfuncinfo.c
@@ -253,6 +253,7 @@ g_vfunc_info_get_address (GIVFuncInfo *vfunc_info,
offset = g_field_info_get_offset (field_info);
func = *(gpointer*) G_STRUCT_MEMBER_P (implementor_vtable, offset);
g_type_class_unref (implementor_vtable);
+ g_base_info_unref (field_info);
if (func == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]