[vlc-devel] [PATCH 31/41] Fix the problem to free an invalid memory object.
KO Myung-Hun
komh at chollian.net
Mon Oct 10 13:44:10 CEST 2011
The first element allocated by FromLocale() is argv[2] not argv[1].
---
bin/vlc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bin/vlc.c b/bin/vlc.c
index ee30bd4..11d09b2 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;
--
1.7.3.2
More information about the vlc-devel
mailing list