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

This commit is contained in:
Rémi Denis-Courmont 2010-05-29 23:44:40 +03:00
parent e5ab4b4142
commit 2098f7858a
1 changed files with 1 additions and 1 deletions

View File

@ -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