Commit 68c70c11 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Jean-Baptiste Kempf

os2: fix crash and memory leaks at exit

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 38e8b7e8
......@@ -276,7 +276,7 @@ int main(int argc, const char *argv[])
out:
libvlc_release (vlc);
#ifdef __OS2__
for (int i = count - argc; i < argc; i++)
for (int i = count - argc + 1; i < count; i++)
free(args[i]);
#endif
return ret;
......
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