Skip to content

Commit 60a7ab3

Browse files
committed
Update CGUI_Impl.cpp
1 parent e4b4a5c commit 60a7ab3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Client/gui/CGUI_Impl.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,8 @@ void CGUI_Impl::Cleanup()
18071807
{
18081808
CleanDeadPool();
18091809

1810+
m_pTop = nullptr;
1811+
18101812
if (m_pWindowManager)
18111813
m_pWindowManager->destroyAllWindows();
18121814

@@ -1817,5 +1819,8 @@ void CGUI_Impl::Cleanup()
18171819
// Recreate the root window (destroyed above via destroyAllWindows)
18181820
CreateRootWindow();
18191821
}
1820-
catch (...) {}
1822+
catch (std::exception& e)
1823+
{
1824+
OutputDebugLine(SString("CGUI_Impl::Cleanup - Exception: %s", e.what()));
1825+
}
18211826
}

0 commit comments

Comments
 (0)