summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-01-12 14:19:22 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-18 10:02:02 +0000
commit6777c882bcaac844139a7cc443181345db1de083 (patch)
tree59edfdf7f1eab0576793167f38159e76a76f284a
parentaacd8d8c76689062ec0576b4ad4321a9fa5d08cb (diff)
matroska: do not leak attachment buffers
-rw-r--r--gst/matroska/matroska-read-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/matroska/matroska-read-common.c b/gst/matroska/matroska-read-common.c
index 188dea91a..d2c2bea94 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);