matroskademux: don't leak TOC chapter list

This commit is contained in:
Tim-Philipp Müller 2014-01-10 14:16:00 +00:00
parent f8158baa93
commit 88ac735af3

View file

@ -1104,6 +1104,7 @@ gst_matroska_read_common_parse_chapter_edition (GstMatroskaReadCommon * common,
for (l = subentries; l; l = l->next)
gst_toc_entry_append_sub_entry (edition_info, l->data);
g_list_free (subentries);
if (is_hidden == 0 && subentries != NULL && ret == GST_FLOW_OK)
gst_toc_append_entry (toc, edition_info);