Commit e3189902 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lib: fix uninitialized values on error path

parent 5fb1ac63
......@@ -1419,7 +1419,7 @@ int libvlc_media_player_get_full_title_descriptions( libvlc_media_player_t *p_mi
libvlc_title_description_t *title = malloc( sizeof (*title) );
if( unlikely(title == NULL) )
{
libvlc_title_descriptions_release( titles, count );
libvlc_title_descriptions_release( titles, i );
return -1;
}
titles[i] = title;
......
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