From f04d812719f5622057df5aa2a74d430d85c37315 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 12 Jan 2012 14:19:22 +0000 Subject: [PATCH] matroska: do not leak attachment buffers --- gst/matroska/matroska-read-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/matroska/matroska-read-common.c b/gst/matroska/matroska-read-common.c index 188dea9..d2c2bea 100644 --- a/gst/matroska/matroska-read-common.c +++ b/gst/matroska/matroska-read-common.c @@ -633,6 +633,9 @@ gst_matroska_read_common_parse_attached_file (GstMatroskaReadCommon * common, else gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_ATTACHMENT, tagbuffer, NULL); + + /* the tag list adds it own ref */ + gst_buffer_unref (tagbuffer); } g_free (filename); -- 2.7.4