Commit 50d38b6d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XSPF: fix memory leak

(cherry picked from commit bba95f3f86bf0ff241b13def7dd81c2af31829f4)
parent 313143fb
...@@ -517,7 +517,10 @@ static bool parse_track_node COMPLEX_INTERFACE ...@@ -517,7 +517,10 @@ static bool parse_track_node COMPLEX_INTERFACE
pp = realloc( p_sys->pp_tracklist, pp = realloc( p_sys->pp_tracklist,
(p_sys->i_track_id + 1) * sizeof(*pp) ); (p_sys->i_track_id + 1) * sizeof(*pp) );
if( !pp ) if( !pp )
{
vlc_gc_decref( p_new_input );
return false; return false;
}
p_sys->pp_tracklist = pp; p_sys->pp_tracklist = pp;
while( p_sys->i_track_id >= p_sys->i_tracklist_entries ) while( p_sys->i_track_id >= p_sys->i_tracklist_entries )
pp[p_sys->i_tracklist_entries++] = NULL; 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