Fix the problem to free an invalid memory object.

The first element allocated by FromLocale() is argv[2] not argv[1].

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
This commit is contained in:
KO Myung-Hun 2011-10-10 20:44:10 +09:00 committed by Rémi Denis-Courmont
parent 685eb491ee
commit 4b5c54ec9f
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ int main( int i_argc, const char *ppsz_argv[] )
out:
if (vlc != NULL)
libvlc_release (vlc);
for (int i = 1; i < argc; i++)
for (int i = 2; i < argc; i++)
LocaleFree (argv[i]);
return 0;