[vlc-commits] commit: Fix invalid free at exit on non-UTF-8 systems ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sat May 29 22:49:09 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 29 23:44:40 2010 +0300| [80835cbb4ff430987fff1d29a2c86ccb938b131f] | committer: Rémi Denis-Courmont 

Fix invalid free at exit on non-UTF-8 systems

(cherry picked from commit 2098f7858a9672c10527807511d0cd3daac458cc)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=80835cbb4ff430987fff1d29a2c86ccb938b131f
---

 bin/vlc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bin/vlc.c b/bin/vlc.c
index d13bbc1..4cf6c83 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -200,7 +200,7 @@ int main( int i_argc, const char *ppsz_argv[] )
         libvlc_release (vlc);
     }
 
-    for (int i = 1; i < argc; i++)
+    for (int i = 2; i < argc; i++)
         LocaleFree (argv[i]);
 
 #ifdef RTLD_NOLOAD



More information about the vlc-commits mailing list