From 6e25b3849692cd9afcfbb4152e7e8e213fd37917 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 25 May 2012 16:32:44 -0400 Subject: [PATCH] givfuncinfo: Fix memory leak The field info wasn't being freed after it was used --- girepository/givfuncinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/girepository/givfuncinfo.c b/girepository/givfuncinfo.c index 462521b6..f9ba64a7 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) { -- 2.34.1