[Bug 743062] Various GstObject subclasses leak when created by bindings using g_object_new()
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Jun 20 14:19:44 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=743062
--- Comment #6 from Christoph Reiter (lazka) <reiter.christoph at gmail.com> ---
Created attachment 330071
--> https://bugzilla.gnome.org/attachment.cgi?id=330071&action=edit
Change GInitiallyUnowned subclasses to create a floating reference
OK, here is the in my opinion least invasive fix. This is proposal (2) from the
initial post.
------
Creating them through g_object_new with bindings leaked as
they returned a sunk reference, which bindings interpret as
them being owned/sunk by some other object and thus having
to ref it again, leading to two initial references.
This changes the subclasses which did a ref_sink to always return
floating refs and sink them in the cunstructor functions
(gst_foo_new(), ..) instead.
This results in floating refs in case these classes are created
with g_object_new, but since they are afaics not used with
functions dealing with floating refs, there should be no difference.
--
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