adaptivedemux: Fix pad memory leak.
The static pads got from queue and uri_handler are not being freed resulting in memory leaks. https://bugzilla.gnome.org/show_bug.cgi?id=757859
This commit is contained in:
parent
ec318cf36d
commit
d624ba0c61
@ -2200,11 +2200,15 @@ gst_adaptive_demux_stream_update_source (GstAdaptiveDemuxStream * stream,
|
|||||||
"Could not link pads %s:%s to %s:%s for reason %d",
|
"Could not link pads %s:%s to %s:%s for reason %d",
|
||||||
GST_DEBUG_PAD_NAME (uri_handler_src), GST_DEBUG_PAD_NAME (queue_sink),
|
GST_DEBUG_PAD_NAME (uri_handler_src), GST_DEBUG_PAD_NAME (queue_sink),
|
||||||
pad_link_ret);
|
pad_link_ret);
|
||||||
|
g_object_unref (queue_sink);
|
||||||
|
g_object_unref (uri_handler_src);
|
||||||
gst_object_unref (stream->src);
|
gst_object_unref (stream->src);
|
||||||
stream->src = NULL;
|
stream->src = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_object_unref (queue_sink);
|
||||||
|
g_object_unref (uri_handler_src);
|
||||||
queue_src = gst_element_get_static_pad (queue, "src");
|
queue_src = gst_element_get_static_pad (queue, "src");
|
||||||
stream->src_srcpad = gst_ghost_pad_new ("src", queue_src);
|
stream->src_srcpad = gst_ghost_pad_new ("src", queue_src);
|
||||||
g_object_unref (queue_src);
|
g_object_unref (queue_src);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user