summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-12-03 16:11:36 -0700
committerIra Rice <irarice@gmail.com>2008-12-03 16:17:49 -0700
commit0ea51c6337aa5b565633bd55f7bca44e5d65e34b (patch)
tree5a48eb5821b8e65a3a23022b6f86b212febbe207
parent37900285377966500d4f97a67dc37327f097ff8a (diff)
downloadmana-0ea51c6337aa5b565633bd55f7bca44e5d65e34b.tar.gz
mana-0ea51c6337aa5b565633bd55f7bca44e5d65e34b.tar.bz2
mana-0ea51c6337aa5b565633bd55f7bca44e5d65e34b.tar.xz
mana-0ea51c6337aa5b565633bd55f7bca44e5d65e34b.zip
Deleted a few dangling pointers noticed by Bjorn.
Signed-off-by: Ira Rice <irarice@gmail.com>
-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();