mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
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:
parent
944f347d00
commit
e9240762ed
1 changed files with 1 additions and 0 deletions
|
@ -1244,6 +1244,7 @@ gst_hls_demux_update_variant_playlist (GstHLSDemux * hlsdemux, gchar * data,
|
||||||
if (hlsdemux->master->is_simple) {
|
if (hlsdemux->master->is_simple) {
|
||||||
GST_ERROR
|
GST_ERROR
|
||||||
("Cannot update variant playlist: Current playlist is not a variant playlist");
|
("Cannot update variant playlist: Current playlist is not a variant playlist");
|
||||||
|
gst_hls_master_playlist_unref (new_master);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue