givfuncinfo: Fix memory leak
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 25 May 2012 20:32:44 +0000 (16:32 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 25 May 2012 20:36:46 +0000 (16:36 -0400)
The field info wasn't being freed after it was used

girepository/givfuncinfo.c

index 462521b62c6d862860f194f1bf2a4797ebae5d77..f9ba64a7fd182f2f53b27545d2b5ace681f39d62 100644 (file)
@@ -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)
     {