GNOME Bugzilla – Bug 666357
Don't claim gst_bin_add, gst_bin_add_many and gst_element_add_pad transfer ownership
Last modified: 2012-09-28 18:02:21 UTC
They only do if the reference on the GstMiniOobject is floating, but increase the refcount if it isn't. The behavior is similar to gtk_container_add, but that doesn't claim to transfer ownership. The Vala bindings that are based on this annotation are causing a reference leak since Vala always sinks the reference.
The parameters should be (transfer floating), not (transfer none) or (transfer full)
Input parameters with transfer!=none are generally unsupported by GoI; although g-ir-scanner still accepts them, the support is considered to be removed, and currently bindings generally don't support them. See bug 630788 for further discussion. Marking input arguments as (transfer floating) is generally no-op and makes no harm though - as long as g-ir-scanner keeps converting (transfer floating) to (transfer none).
I guess this can be closed as OBSOLETE. Please re-open if there are still issues with 1.0.