Commit 6e8dc28c authored by John (J5) Palmieri's avatar John (J5) Palmieri
Browse files

[gi] don't clean up arguments that weren't yet processed during in arg failure

parent af7c93ea
......@@ -133,7 +133,7 @@ pygi_marshal_cleanup_args_in_parameter_fail (PyGIInvokeState *state,
state->failed = TRUE;
for (i = 0; i < cache->n_args; i++) {
for (i = 0; i < cache->n_args && i <= failed_arg_index; i++) {
PyGIArgCache *arg_cache = cache->args_cache[i];
PyGIMarshalCleanupFunc cleanup_func = arg_cache->in_cleanup;
gpointer data = state->args[i]->v_pointer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment