summaryrefslogtreecommitdiff
path: root/gi/pygi-closure.c
diff options
context:
space:
mode:
authorGarrett Regier <Garrett.Regier@riftio.com>2014-08-05 10:16:45 -0400
committerGarrett Regier <Garrett.Regier@riftio.com>2014-08-06 09:12:52 -0400
commit6a21dab89b59db0afc6d6a22272028ee949b52ad (patch)
treed6eb6c534faf96e1300c69d3a02fdb17ae03679d /gi/pygi-closure.c
parente6d48b4eadbeb1014c4eb140317b579e69eb8d88 (diff)
downloadpygobject-6a21dab89b59db0afc6d6a22272028ee949b52ad.tar.gz
Correctly set the destroy notify for callbacks in closures
https://bugzilla.gnome.org/show_bug.cgi?id=727004
Diffstat (limited to 'gi/pygi-closure.c')
-rw-r--r--gi/pygi-closure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index 6da27b67..bd5d8e25 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,