[vlc-commits] XSPF: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Jun 4 16:01:19 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 4 15:06:39 2011 +0300| [bba95f3f86bf0ff241b13def7dd81c2af31829f4] | committer: Rémi Denis-Courmont
XSPF: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bba95f3f86bf0ff241b13def7dd81c2af31829f4
---
modules/demux/playlist/xspf.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index f715fb9..9a07650 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -440,7 +440,10 @@ static bool parse_track_node COMPLEX_INTERFACE
pp = realloc( p_sys->pp_tracklist,
(p_sys->i_track_id + 1) * sizeof(*pp) );
if( !pp )
+ {
+ vlc_gc_decref( p_new_input );
return false;
+ }
p_sys->pp_tracklist = pp;
while( p_sys->i_track_id >= p_sys->i_tracklist_entries )
pp[p_sys->i_tracklist_entries++] = NULL;
More information about the vlc-commits
mailing list