summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-12-04 00:40:48 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-04 00:42:38 +0100
commita4e1725ff13dfe72dc83611e014cc5bf2f213fa8 (patch)
treee81d2c5403ab6453c558cbd6be8fda07d173d879 /src
parent35b44ad9dc02479390b3a04d31ec7dc321e1ccec (diff)
downloadmana-client-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.tar.gz
mana-client-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.tar.bz2
mana-client-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.tar.xz
mana-client-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.zip
Deleted a few dangling pointers noticed by Bjorn.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c192b041..8371c941 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -421,7 +421,6 @@ void exit_engine()
delete gui;
delete graphics;
- delete setupWindow;
// Shutdown libxml
xmlCleanupParser();
@@ -898,9 +897,13 @@ int main(int argc, char *argv[])
#endif
delete progressBar;
delete progressLabel;
+ delete setup;
+ delete setupWindow;
progressBar = NULL;
progressLabel = NULL;
currentDialog = NULL;
+ setup = NULL;
+ setupWindow = NULL;
login_wallpaper->decRef();
login_wallpaper = NULL;
@@ -969,6 +972,8 @@ int main(int argc, char *argv[])
#endif
delete progressBar;
delete progressLabel;
+ delete setup;
+ delete setupWindow;
delete network;
SDLNet_Quit();