Commit 59bc6a45 authored by Filip Roséen's avatar Filip Roséen Committed by Thomas Guillem

lib/media_player: libvlc_get_track_description: fix return-value on error

p_track_description is returned when goto end is executed, meaning
that we would return a non-NULL value that has already been released
by the call to libvlc_track_description_list_release.
Signed-off-by: Thomas Guillem's avatarThomas Guillem <>
parent 71cb6dbb
......@@ -1807,6 +1807,8 @@ libvlc_track_description_t *
libvlc_track_description_list_release( p_track_description );
libvlc_printerr( "Not enough memory" );
p_track_description = NULL;
goto end;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment