summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b1bfa4c1..a8ed0651 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -430,7 +430,6 @@ void exit_engine()
delete gui;
delete graphics;
- delete setupWindow;
// Shutdown libxml
xmlCleanupParser();
@@ -937,6 +936,8 @@ int main(int argc, char *argv[])
#endif
delete progressBar;
delete progressLabel;
+ delete setup;
+ delete setupWindow;
progressBar = NULL;
progressLabel = NULL;
currentDialog = NULL;
@@ -1023,6 +1024,8 @@ int main(int argc, char *argv[])
#endif
delete progressBar;
delete progressLabel;
+ delete setup;
+ delete setupWindow;
delete network;
SDLNet_Quit();