media_track: fix tracklist leak when no track found
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 40c14fbe in libvlc_media_tracklist_from_es_array(). Introduced in 057f3ef9.
Loading
Please register or sign in to comment