GNOME Bugzilla – Bug 694825
possibly add annotation for "consumes floating ref" params
Last modified: 2015-02-07 17:00:19 UTC
For convenience GVariant parameters are usually _ref_sink'ed to allow inline calls to g_variant_new() (and family). Make this obvious by from a documentation standpoint adding a (transfer full) annotation where appropriate.
Created attachment 237569 [details] [review] gio: Annotate some GVariant parameters as (transfer full)
I think this is very much the wrong thing to do... For the floating case, there is no transfer here because you were never considered to own a reference in the first place. For the non-floating case, this is definitely not (transfer full) because you keep your own reference. It might make sense to have some sort of common annotation for "this consumes a floating ref" but it's definitely not "(transfer full)". Punting this over to introspection as more of a 'general enhancement' type of bug.
duplicate of bug 657202 *** This bug has been marked as a duplicate of bug 657202 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]