aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/win_main_utf8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/win_main_utf8.h b/common/win_main_utf8.h
index 1299e49e..a95914bb 100644
--- a/common/win_main_utf8.h
+++ b/common/win_main_utf8.h
@@ -76,6 +76,8 @@ static void GetUnicodeArgs(int *argc, char ***argv)
}
WideCharToMultiByte(CP_UTF8, 0, args[i], -1, (*argv)[i], -1, NULL, NULL);
*argc = nargs;
+
+ LocalFree(args);
}
#define GET_UNICODE_ARGS(argc, argv) GetUnicodeArgs(argc, argv)