[pygobject] Correctly set the destroy notify for callbacks in closures
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Correctly set the destroy notify for callbacks in closures
- Date: Wed, 6 Aug 2014 13:13:10 +0000 (UTC)
commit 6a21dab89b59db0afc6d6a22272028ee949b52ad
Author: Garrett Regier <Garrett Regier riftio com>
Date: Tue Aug 5 10:16:45 2014 -0400
Correctly set the destroy notify for callbacks in closures
https://bugzilla.gnome.org/show_bug.cgi?id=727004
gi/pygi-closure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index 6da27b6..bd5d8e2 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -431,7 +431,7 @@ _pygi_closure_convert_arguments (GICallableInfo *callable_info, void **args,
user_data = g_args[user_data_arg].v_pointer;
if (destroy_notify_arg != -1)
- user_data = (GDestroyNotify) g_args[destroy_notify_arg].v_pointer;
+ destroy_notify = (GDestroyNotify) g_args[destroy_notify_arg].v_pointer;
value = _pygi_ccallback_new(arg->v_pointer,
user_data,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]