hls: m3u8: don't leak GList nodes when matching up variant lists after master list update

This commit is contained in:
Tim-Philipp Müller 2015-11-06 00:48:42 +00:00
parent ba8b8e4677
commit 3015cd75e4

View file

@ -907,7 +907,7 @@ gst_m3u8_client_update_variant_playlist (GstM3U8Client * self, gchar * data,
GList *match = g_list_find_custom (unmatched_lists, list_entry->data,
(GCompareFunc) _find_m3u8_list_match);
if (match)
unmatched_lists = g_list_remove_link (unmatched_lists, match);
unmatched_lists = g_list_delete_link (unmatched_lists, match);
}
if (unmatched_lists != NULL) {