Fix a rather heinous memory bug. Don't delete things on the stack!

This commit is contained in:
Mike Crowe 2006-05-30 20:13:53 +00:00
parent 1fe21b7686
commit 7cfbedc04c

View File

@ -94,8 +94,6 @@ void Application::Exit()
if (m_dlg) if (m_dlg)
{ {
m_dlg->DestroyWindow(); m_dlg->DestroyWindow();
delete m_dlg;
m_dlg = NULL;
} }
::PostQuitMessage(0); ::PostQuitMessage(0);
} }