vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Thu Dec 10 15:08:15 2020 +0100| [7e305be5d43d5dc2aa6f62e09a31fa24af822314] | committer: Hugo Beauzée-Luyssen
adaptive: playlist: Fix list cleanup Calling front() on an empty container is undefined behavior > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7e305be5d43d5dc2aa6f62e09a31fa24af822314 --- modules/demux/adaptive/playlist/Inheritables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/demux/adaptive/playlist/Inheritables.cpp b/modules/demux/adaptive/playlist/Inheritables.cpp index c61b3f0c45..16c1ef4d2f 100644 --- a/modules/demux/adaptive/playlist/Inheritables.cpp +++ b/modules/demux/adaptive/playlist/Inheritables.cpp @@ -58,7 +58,7 @@ AttrsNode::AttrsNode(Type t, AttrsNode *parent_) AttrsNode::~AttrsNode() { - while(props.front()) + while(!props.empty()) { delete props.front(); props.pop_front(); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits