gclosure: Fix the invoke() return_value annotation

The return value must be initialized by the caller, as is clear from
GLib's internal callers, and e.g. dummy_closure_marshal() on the callee
side.
This commit is contained in:
Ole André Vadla Ravnås 2021-07-09 02:43:54 +02:00
parent 7743dc889b
commit 9c01c1ebee

View File

@ -761,7 +761,7 @@ g_closure_remove_finalize_notifier (GClosure *closure,
/**
* g_closure_invoke:
* @closure: a #GClosure
* @return_value: (optional) (out): a #GValue to store the return
* @return_value: (optional) (inout): a #GValue to store the return
* value. May be %NULL if the callback of @closure
* doesn't return a value.
* @n_param_values: the length of the @param_values array