diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-12 14:19:22 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-12 14:19:22 +0000 |
commit | f04d812719f5622057df5aa2a74d430d85c37315 (patch) | |
tree | f8523100dee1909f6fbe74b7363a76f0788ef67a /gst/matroska | |
parent | 483514528acfa3551fec92b9ea2dba3731f92f05 (diff) |
matroska: do not leak attachment buffers
Diffstat (limited to 'gst/matroska')
-rw-r--r-- | gst/matroska/matroska-read-common.c | 3 |
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); |