mirror of https://code.videolan.org/videolan/vlc
lib: fix uninitialized values on error path
This commit is contained in:
parent
5fb1ac638e
commit
e318990236
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue