hls: m3u8: don't leak GList nodes when matching up variant lists after master list...
authorTim-Philipp Müller <tim@centricular.com>
Fri, 6 Nov 2015 00:48:42 +0000 (00:48 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 6 Nov 2015 00:48:42 +0000 (00:48 +0000)
ext/hls/m3u8.c

index 7164ae2..d1fa8a3 100644 (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) {