diff options
author | Philippe Normand <philn@igalia.com> | 2016-02-18 18:33:13 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-04-06 11:03:08 +0100 |
commit | 61b8897a666c20988cac71bdd02a6b4ae87cb84f (patch) | |
tree | 99bafa75f7df2913b5935badafe28d51da2d141d | |
parent | d4158cfac016e3cc7676d5e53f3767e8dfc5936e (diff) | |
download | gstreamer-plugins-good-61b8897a666c20988cac71bdd02a6b4ae87cb84f.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 cc408939c..2c510625e 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -3228,6 +3228,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) @@ -3252,6 +3253,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); } |