[vlc-commits] lib: fix uninitialized values on error path
Rémi Denis-Courmont
git at videolan.org
Wed Aug 5 20:38:21 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 5 21:38:09 2015 +0300| [e3189902360d73e23d7e436363c9b45acd0c4531] | committer: Rémi Denis-Courmont
lib: fix uninitialized values on error path
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3189902360d73e23d7e436363c9b45acd0c4531
---
lib/media_player.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index a94593e..c727b6e 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -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;
More information about the vlc-commits
mailing list