Commit 8f26ca26 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

xspf: Don't leak input items.

Spotted by thedj with the help of our bugreport ml.
parent cdb92b0f
/*******************************************************************************
* xspf.c : XSPF playlist import functions
*******************************************************************************
......@@ -63,6 +64,12 @@ int Import_xspf( vlc_object_t *p_this )
void Close_xspf( vlc_object_t *p_this )
{
demux_t *p_demux = (demux_t *)p_this;
int i;
for(i = 0; i < p_demux->p_sys->i_tracklist_entries; i++)
{
if(p_demux->p_sys->pp_tracklist[i])
vlc_gc_decref( p_demux->p_sys->pp_tracklist[i] );
}
FREENULL( p_demux->p_sys->pp_tracklist );
FREENULL( p_demux->p_sys->psz_base );
free( p_demux->p_sys );
......
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