diff options
author | Philippe Normand <philn@igalia.com> | 2016-02-18 18:33:13 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-02-19 10:30:46 +0200 |
commit | 52b16768a2a07b28fe55c3b86becf594eef79f90 (patch) | |
tree | e19653e89272e87b0d63b4082e6aee0e6e5fb80f | |
parent | 8e2c1d1de56bddbff22170f8b17473882e0e63f9 (diff) | |
download | gstreamer-plugins-good-52b16768a2a07b28fe55c3b86becf594eef79f90.tar.gz |
qtdemux: plug leaks in cenc aux info parsing
-rw-r--r-- | gst/isomp4/qtdemux.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |