Commit bba95f3f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

XSPF: fix memory leak

parent b856ec53
......@@ -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;
......
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