From 845ccc93851ab6481c3cd20ebecb4b0213ed6b4d Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 20 Jun 2011 21:17:55 +0200 Subject: [PATCH] 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 --- girepository/girffi.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.34.1