[Bug 760821] tracerrecord: Fix memory leaks and mishandlings

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jan 21 11:19:00 PST 2016


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

--- Comment #18 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
It would certainly be possible to write a gst_structure_new_and_take() function
that takes ownership of structures passed though (by using G_VALUE_COLLECT*
with the G_VALUE_NOCOPY_CONTENTS flag).

You could also change gst_tracer_record_new() to this:


gst_tracer_record_new (const gchar * classname, const gchar *first_field, ...)

and then make it collect things like GstStructure but taking ownership.

-- 
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