From 624aebcb935522ab4fd097d3aa02e62c2d7dabd0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 16 Jun 2004 01:08:38 +0000 Subject: [PATCH] fix Dialog bugs --- stepmania/src/arch/Dialog/Dialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/Dialog/Dialog.cpp b/stepmania/src/arch/Dialog/Dialog.cpp index 2f522285f9..154804eb7e 100644 --- a/stepmania/src/arch/Dialog/Dialog.cpp +++ b/stepmania/src/arch/Dialog/Dialog.cpp @@ -53,8 +53,8 @@ void Dialog::Init() void Dialog::Shutdown() { - ASSERT( g_pImpl != NULL ); - + delete g_pImpl; + g_pImpl = NULL; } static bool MessageIsIgnored( CString ID ) @@ -70,6 +70,7 @@ static bool MessageIsIgnored( CString ID ) void Dialog::IgnoreMessage( CString ID ) { if( ID == "" ) + return; if( MessageIsIgnored(ID) ) return;