mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
Free allocated ffi_types in g_callable_info_free_closure()
g_callable_info_prepare_closure() allocates memory for the argument types in the ffi_cif, so we need to free it. https://bugzilla.gnome.org/show_bug.cgi?id=652954
This commit is contained in:
parent
a1b527c79f
commit
98067194d6
1
girffi.c
1
girffi.c
@ -366,5 +366,6 @@ g_callable_info_free_closure (GICallableInfo *callable_info,
|
|||||||
{
|
{
|
||||||
GIClosureWrapper *wrapper = (GIClosureWrapper *)closure;
|
GIClosureWrapper *wrapper = (GIClosureWrapper *)closure;
|
||||||
|
|
||||||
|
g_free (wrapper->ffi_closure.cif->arg_types);
|
||||||
ffi_closure_free (wrapper->writable_self);
|
ffi_closure_free (wrapper->writable_self);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user