diff options
author | Jun Xie <jun.xie@samsung.com> | 2018-01-03 10:26:49 +0800 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2018-01-16 08:49:04 +0100 |
commit | e9240762ed7f6775f085475384da75f01f3fa718 (patch) | |
tree | c0a01b0d892595057ece3acd04530ef8d04003be /ext | |
parent | 944f347d0024c3fd5a202eaf30cd79842142ea25 (diff) | |
download | gstreamer-plugins-bad-e9240762ed7f6775f085475384da75f01f3fa718.tar.gz |
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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/hls/gsthlsdemux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 8c6f221d0..4317d65c3 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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; } |