]> git.sesse.net Git - vlc/commitdiff
m3u: fix a memory leak (the string is not allocated with FromLocale nor ToLocale...
authorRémi Duraffort <ivoire@videolan.org>
Wed, 21 Jul 2010 20:28:08 +0000 (22:28 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 21 Jul 2010 20:28:08 +0000 (22:28 +0200)
modules/demux/playlist/m3u.c

index aaa8ab0ace5e6845c01f840054425c341b079151..d0e86422403ec65e33993f961aaa5eae195b6129 100644 (file)
@@ -222,14 +222,14 @@ static int Demux( demux_t *p_demux )
             b_cleanup = true;
             if( !psz_mrl )
             {
-                LocaleFree( psz_parse );
+                free( psz_parse );
                 goto error;
             }
 
             p_input = input_item_NewExt( p_demux, psz_mrl, psz_name,
                                         i_options, ppsz_options, 0, i_duration );
 
-            LocaleFree( psz_parse );
+            free( psz_parse );
             free( psz_mrl );
 
             if ( !EMPTY_STR(psz_artist) )