From 52b16768a2a07b28fe55c3b86becf594eef79f90 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Thu, 18 Feb 2016 18:33:13 +0100 Subject: qtdemux: plug leaks in cenc aux info parsing --- gst/isomp4/qtdemux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index a45801105..63314bcd4 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -3279,6 +3279,7 @@ qtdemux_parse_cenc_aux_info (GstQTDemux * qtdemux, QtDemuxStream * stream, } buf = gst_buffer_new_wrapped (data, iv_size); gst_structure_set (properties, "iv", GST_TYPE_BUFFER, buf, NULL); + gst_buffer_unref (buf); size = info_sizes[i]; if (size > iv_size) { if (!gst_byte_reader_get_uint16_be (br, &n_subsamples) @@ -3303,6 +3304,7 @@ qtdemux_parse_cenc_aux_info (GstQTDemux * qtdemux, QtDemuxStream * stream, gst_structure_set (properties, "subsample_count", G_TYPE_UINT, n_subsamples, "subsamples", GST_TYPE_BUFFER, buf, NULL); + gst_buffer_unref (buf); } else { gst_structure_set (properties, "subsample_count", G_TYPE_UINT, 0, NULL); } -- cgit v1.2.1