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:
Giovanni Campagna 2011-06-20 21:17:55 +02:00
parent a1b527c79f
commit 98067194d6

View File

@ -366,5 +366,6 @@ g_callable_info_free_closure (GICallableInfo *callable_info,
{
GIClosureWrapper *wrapper = (GIClosureWrapper *)closure;
g_free (wrapper->ffi_closure.cif->arg_types);
ffi_closure_free (wrapper->writable_self);
}