aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 2137650736..f9ec3449ea 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -287,6 +287,9 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
// Parse the command line
Common::StringMap settings;
command = Base::parseCommandLine(settings, argc, argv);
+#ifdef PALMOS_68K
+ ArgsFree(argv);
+#endif
// Load the config file (possibly overriden via command line):
if (settings.contains("config")) {
@@ -325,10 +328,6 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
GUI::Actions::init();
#endif
-#ifdef PALMOS_68K
- ArgsFree(argv);
-#endif
-
// Init the backend. Must take place after all config data (including
// the command line params) was read.
system.initBackend();