From 00ae12677a86ab308c84e35b4e238b5dc3bf57cf Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Thu, 17 Jul 2014 19:24:35 -0400 Subject: [PATCH] Fix GUI crashes when exiting STK by clicking the X button in the window titlebar --- src/graphics/irr_driver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index b2418fa0e..fedc76f07 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -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; }