From 3015cd75e44d4458ed18bcd72a95d7bb429ceba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 6 Nov 2015 00:48:42 +0000 Subject: [PATCH] hls: m3u8: don't leak GList nodes when matching up variant lists after master list update --- ext/hls/m3u8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 7164ae2e9e..d1fa8a312c 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -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) {