mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
tsdemux: Avoid unlinkely leaks and segfault
This commit is contained in:
parent
b6d98aea5f
commit
f977d7e743
1 changed files with 5 additions and 2 deletions
|
@ -1270,10 +1270,13 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
|
|||
gst_pad_set_query_type_function (pad, gst_ts_demux_srcpad_query_types);
|
||||
gst_pad_set_query_function (pad, gst_ts_demux_srcpad_query);
|
||||
gst_pad_set_event_function (pad, gst_ts_demux_srcpad_event);
|
||||
gst_caps_unref (caps);
|
||||
}
|
||||
|
||||
g_free (name);
|
||||
if (name)
|
||||
g_free (name);
|
||||
|
||||
if (caps)
|
||||
gst_caps_unref (caps);
|
||||
|
||||
return pad;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue