tsdemux: Avoid unlinkely leaks and segfault

This commit is contained in:
Thibault Saunier 2012-02-24 15:26:21 -03:00
parent b6d98aea5f
commit f977d7e743

View file

@ -1270,11 +1270,14 @@ 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);
}
if (name)
g_free (name);
if (caps)
gst_caps_unref (caps);
return pad;
}