g_boxed_copy for GClosure doesn't use g_closure_sink
This is currently just an observation: I am not aware of any behavioural issue.
Support for g_boxed_copy
with GClosure
values is defined in gboxed.c but this does not mention g_closure_sink
. In GObject bindings, I have avoided using g_boxed_copy
for GClosure
values and instead called g_closure_ref
followed by g_closure_sink
(as there is no all-in-one ref-sink function). I would like to remove this manual override and use g_boxed_copy
but is that equivalent? The current situation seems inconsistent: either g_closure_sink
is unnecessary or it should be used by g_boxed_copy
.