summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2011-06-20 21:17:55 +0200
committerGiovanni Campagna <gcampagna@src.gnome.org>2011-06-20 21:19:05 +0200
commit845ccc93851ab6481c3cd20ebecb4b0213ed6b4d (patch)
treea196bff48df7d7fc7377eb6166f696bb6a6d8ccb /girepository
parent83fe28920512a3e8bc5cdeeb3d59be6f19b80bac (diff)
downloadgobject-introspection-845ccc93851ab6481c3cd20ebecb4b0213ed6b4d.tar.gz
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
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girffi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/girepository/girffi.c b/girepository/girffi.c
index b7c1ceae..b5d35973 100644
--- a/girepository/girffi.c
+++ b/girepository/girffi.c
@@ -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);
}