From 0b6fae7c93881006858abcfba5427f2154473a03 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 3 Aug 2010 01:58:43 +0000 Subject: [PATCH] - attempt to work more friendly with open suse --- source/glest_game/main/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index fa241052..e46ab17a 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -581,6 +581,8 @@ int glestMain(int argc, char** argv){ Renderer &renderer= Renderer::getInstance(); printf("%s",renderer.getGlInfo().c_str()); + delete mainWindow; + return -1; } if(hasCommandArgument(argc, argv,"--validate-techtrees") == true) { @@ -591,6 +593,8 @@ int glestMain(int argc, char** argv){ vector results; findDirs(config.getPathListForType(ptTechs), results); vector techTreeFiles = results; + + { World world; vector techPaths = config.getPathListForType(ptTechs); @@ -657,7 +661,9 @@ int glestMain(int argc, char** argv){ } printf("\n====== Finished Validation ======\n"); + } + delete mainWindow; return -1; }