[vlc-devel] commit: M3U: fix mem leak on non-UTF-8 systems ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Oct 4 09:29:51 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 4 10:26:03 2009 +0300| [e7a7a2e4a6c8fdf02b897e99b6214f86d5b5f4ce] | committer: Rémi Denis-Courmont
M3U: fix mem leak on non-UTF-8 systems
(cherry picked from commit d123196ede8a2ccc836b973c1b80166e0195202d)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7a7a2e4a6c8fdf02b897e99b6214f86d5b5f4ce
---
modules/demux/playlist/m3u.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index ab6081b..f727c87 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -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:
More information about the vlc-devel
mailing list