From d413c2ecd33b67ac769849463ab3e96395e626e5 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Wed, 3 Dec 2008 16:11:36 -0700 Subject: Deleted a few dangling pointers noticed by Bjorn. Signed-off-by: Ira Rice --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2