matroskademux: don't leak TOC chapter list
authorTim-Philipp Müller <tim@centricular.com>
Fri, 10 Jan 2014 14:16:00 +0000 (14:16 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 10 Jan 2014 16:50:11 +0000 (16:50 +0000)
gst/matroska/matroska-read-common.c

index bfbe02a..2530479 100644 (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);