hlsdemux: fix memory leak while updating master playlist

new_master needs to be freed if current playlist is not a master playlist

https://bugzilla.gnome.org/show_bug.cgi?id=792146
This commit is contained in:
Jun Xie 2018-01-03 10:26:49 +08:00 committed by Edward Hervey
parent 944f347d00
commit e9240762ed

View file

@ -1244,6 +1244,7 @@ gst_hls_demux_update_variant_playlist (GstHLSDemux * hlsdemux, gchar * data,
if (hlsdemux->master->is_simple) {
GST_ERROR
("Cannot update variant playlist: Current playlist is not a variant playlist");
gst_hls_master_playlist_unref (new_master);
goto out;
}