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

M3U: fix mem leak on non-UTF-8 systems

parent db2ec1d1
......@@ -195,12 +195,14 @@ static int Demux( demux_t *p_demux )
p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,
i_options, ppsz_options, 0, i_duration );
LocaleFree( psz_parse );
free( psz_mrl );
if ( psz_artist && *psz_artist )
input_item_SetArtist( p_input, psz_artist );
input_item_AddSubItem( p_current_input, p_input );
vlc_gc_decref( p_input );
free( psz_mrl );
}
error:
......
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