diff options
author | Ira Rice <irarice@gmail.com> | 2008-12-03 16:11:36 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-03 16:11:36 -0700 |
commit | d413c2ecd33b67ac769849463ab3e96395e626e5 (patch) | |
tree | 5a48eb5821b8e65a3a23022b6f86b212febbe207 | |
parent | 37900285377966500d4f97a67dc37327f097ff8a (diff) | |
download | mana-d413c2ecd33b67ac769849463ab3e96395e626e5.tar.gz mana-d413c2ecd33b67ac769849463ab3e96395e626e5.tar.bz2 mana-d413c2ecd33b67ac769849463ab3e96395e626e5.tar.xz mana-d413c2ecd33b67ac769849463ab3e96395e626e5.zip |
Deleted a few dangling pointers noticed by Bjorn.
Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r-- | src/main.cpp | 5 |
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(); |