matroska: do not leak attachment buffers
This commit is contained in:
parent
483514528a
commit
f04d812719
@ -633,6 +633,9 @@ gst_matroska_read_common_parse_attached_file (GstMatroskaReadCommon * common,
|
|||||||
else
|
else
|
||||||
gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_ATTACHMENT,
|
gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_ATTACHMENT,
|
||||||
tagbuffer, NULL);
|
tagbuffer, NULL);
|
||||||
|
|
||||||
|
/* the tag list adds it own ref */
|
||||||
|
gst_buffer_unref (tagbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user