From: KO Myung-Hun Date: Mon, 10 Oct 2011 11:44:10 +0000 (+0900) Subject: Fix the problem to free an invalid memory object. X-Git-Tag: 1.2.0-pre1~266 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4b5c54ec9f435e6e34331f7dd83697ee6a998932;p=vlc 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 --- diff --git a/bin/vlc.c b/bin/vlc.c index ee30bd4196..11d09b278d 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -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;