givfuncinfo: Fix memory leak

The field info wasn't being freed after it was used
This commit is contained in:
Jasper St. Pierre 2012-05-25 16:32:44 -04:00
parent 8af8aaa4a8
commit df10915ba5

View 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)
{