Fix GUI crashes when exiting STK by clicking the X button in the window titlebar

This commit is contained in:
Marianne Gagnon 2014-07-17 19:24:35 -04:00
parent 4e079b0e14
commit 00ae12677a

View File

@ -1931,8 +1931,9 @@ void IrrDriver::update(float dt)
// =================================
if (!m_device->run())
{
GUIEngine::cleanUp();
GUIEngine::deallocate();
// Don't bother cleaning up GUI, has no use and may result in crashes
//GUIEngine::cleanUp();
//GUIEngine::deallocate();
main_loop->abort();
return;
}