Commit af394f5d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Fix crash

parent e7e8927b
......@@ -896,8 +896,8 @@ int libvlc_media_player_get_chapter_count_for_title(
if( !p_input_thread )
return -1;
char *psz_name = NULL;
if( asprintf( psz_name, "title %2i", i_title ) == -1 )
char *psz_name;
if( asprintf( &psz_name, "title %2i", i_title ) == -1 )
{
vlc_object_release( p_input_thread );
return -1;
......
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