summaryrefslogtreecommitdiff
path: root/gi/pygi-invoke.c
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2010-05-03 18:35:13 +0200
committerTomeu Vizoso <tomeu@sugarlabs.org>2010-05-03 18:43:37 +0200
commit3e61e7d4450a2bb133c7f3862e0962a35339ce8d (patch)
tree49b30f6569aca72b8fd7bd9098ea787d99f7dd3d /gi/pygi-invoke.c
parent9669acd0fad193013ef3505ae231588307f9834c (diff)
downloadpygobject-3e61e7d4450a2bb133c7f3862e0962a35339ce8d.tar.gz
Fix passing GDestroyNotify
https://bugzilla.gnome.org/show_bug.cgi?id=617542
Diffstat (limited to 'gi/pygi-invoke.c')
-rw-r--r--gi/pygi-invoke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gi/pygi-invoke.c b/gi/pygi-invoke.c
index 431e0fe1..aa8c5f31 100644
--- a/gi/pygi-invoke.c
+++ b/gi/pygi-invoke.c
@@ -391,7 +391,8 @@ _prepare_invocation_state (struct invocation_state *state,
py_args_pos++;
continue;
} else if (i == state->destroy_notify_index) {
- state->args[i]->v_pointer = _pygi_destroy_notify_create();
+ PyGICClosure *destroy_notify = _pygi_destroy_notify_create();
+ state->args[i]->v_pointer = destroy_notify->closure;
continue;
}