[pygobject] Use g_slist_free_full in pygi-closure.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Use g_slist_free_full in pygi-closure.
- Date: Wed, 4 Jan 2012 16:11:25 +0000 (UTC)
commit dee2f179037902a3883bd0e61ff1c350e1fd8a4f
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Jan 4 16:40:51 2012 +0100
Use g_slist_free_full in pygi-closure.
gi/pygi-closure.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index f770b20..7cd0436 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -421,8 +421,7 @@ _pygi_make_native_closure (GICallableInfo* info,
ffi_closure *fficlosure;
/* Begin by cleaning up old async functions */
- g_slist_foreach (async_free_list, (GFunc) _pygi_invoke_closure_free, NULL);
- g_slist_free (async_free_list);
+ g_slist_free_full (async_free_list, (GDestroyNotify) _pygi_invoke_closure_free);
async_free_list = NULL;
/* Build the closure itself */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]