From 798777f3134faa5c3c750aae3544a98129c4dab5 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Thu, 2 Jun 2016 12:30:38 -0700 Subject: [PATCH] - fix the build --- source/glest_game/main/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index f1eb6e162..e31a34085 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -5966,7 +5966,7 @@ __try { initSpecialStrings(); int result = 0; - try { + #ifdef WIN32 winSockManager = new SocketManager(); #endif @@ -5977,14 +5977,12 @@ __try { cleanupProcessObjects(); if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); - } - catch(const exception &e) { + #ifdef WIN32 delete winSockManager; winSockManager = NULL; #endif - throw e; - } + if(sdl_quitCalled == false) { sdl_quitCalled = true; SDL_Quit();