mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-27 20:52:12 +01:00
givfuncinfo: Fix memory leak
The field info wasn't being freed after it was used
This commit is contained in:
parent
8af8aaa4a8
commit
df10915ba5
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user