lib: fix uninitialized values on error path

This commit is contained in:
Rémi Denis-Courmont 2015-08-05 21:38:09 +03:00
parent 5fb1ac638e
commit e318990236
1 changed files with 1 additions and 1 deletions

View File

@ -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;