Commit 4b5c54ec authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Denis-Courmont

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's avatarRémi Denis-Courmont <>
parent 685eb491
......@@ -247,7 +247,7 @@ int main( int i_argc, const char *ppsz_argv[] )
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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment