diff options
author | Ira Rice <irarice@gmail.com> | 2008-12-04 00:40:48 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-04 00:42:38 +0100 |
commit | a4e1725ff13dfe72dc83611e014cc5bf2f213fa8 (patch) | |
tree | e81d2c5403ab6453c558cbd6be8fda07d173d879 /src/main.cpp | |
parent | 35b44ad9dc02479390b3a04d31ec7dc321e1ccec (diff) | |
download | mana-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.tar.gz mana-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.tar.bz2 mana-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.tar.xz mana-a4e1725ff13dfe72dc83611e014cc5bf2f213fa8.zip |
Deleted a few dangling pointers noticed by Bjorn.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
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(); |