[gobject-introspection] Free allocated ffi_types in g_callable_info_free_closure()
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Free allocated ffi_types in g_callable_info_free_closure()
- Date: Mon, 20 Jun 2011 20:18:37 +0000 (UTC)
commit 845ccc93851ab6481c3cd20ebecb4b0213ed6b4d
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Jun 20 21:17:55 2011 +0200
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/girepository/girffi.c b/girepository/girffi.c
index b7c1cea..b5d3597 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]