[Bug 702960] Functions calling ref_sink() on parameters have wrong annotations (gst_bin_add(), gst_element_add_pad(), etc.)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 11 10:25:46 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=702960

--- Comment #32 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
I'd suggest we just follow GTK here now (unlikely that GI changes anytime soon,
and bindings already do what GTK does, and it is the right thing for bindings
according to the GObject documentation).
That is, "transfer none" for gst_bin_add() / gst_element_add_pad() / etc., or
rather "transfer floating" so that we have "transfer none" behaviour for
bindings *and* signal in the documentation that it's not exactly "transfer
none" for C developers.

Everything else causes memory leaks and worse.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list