[Bug 760982] adaptivedemux: memory leak of stream->internal_pad

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jan 22 08:50:09 PST 2016


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

--- Comment #2 from A Ashley <bugzilla at ashley-family.net> ---
Created attachment 319562
  --> https://bugzilla.gnome.org/attachment.cgi?id=319562&action=edit
adaptivedemux: fix leak of stream->internal_pad

The function gst_adaptive_demux_stream_update_source() function creates a new
GstPad called internal_pad. This pad is not freed when releasing the stream.

My solution is to set GST_PAD_FLAG_NEED_PARENT so that the chain functions do
not get called when the pad has no parent and then remove the parent in the
gst_adaptive_demux_stream_free() function. This causes the refcount of the pad
to be decremented to zero.

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