tsdemux: remove memory leak

The values of channel_mapping are copied by gst_codec_utils_opus_create_caps ()
but it doesn't free or take ownership of the g_new0 allocated memory. This
needs to be freed before going out of scope.

CID 1338692
This commit is contained in:
Luis de Bethencourt 2015-11-12 12:00:07 +00:00
parent 7bec955fe0
commit fc23467152

View file

@ -1357,6 +1357,8 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
gst_codec_utils_opus_create_caps (48000, channels,
mapping_family, stream_count, coupled_count,
channel_mapping);
g_free (channel_mapping);
}
} else {
GST_WARNING_OBJECT (demux,