Skip to content

media_track: fix tracklist leak when no track found

Steve Lhomme requested to merge robUx4/vlc:media-track-leakst into master

When count is 0 the list is still allocated. Either we should not allocate one, we free it locally, or we pass it on as it. The latter is similar to the code from 6a693c27 in libvlc_media_tracklist_from_es_array().

Introduced in 057f3ef9.

Edited by Steve Lhomme

Merge request reports

Loading