mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-20 07:10:14 +01:00
Fix segmentaton fault on exit
This commit is contained in:
parent
9ab2841100
commit
f7bf375bea
|
|
@ -171,8 +171,10 @@ int CIRCDDBGatewayApp::OnExit()
|
|||
|
||||
wxLogInfo(APPLICATION_NAME + wxT(" is exiting"));
|
||||
|
||||
//m_thread->kill();
|
||||
wxGetApp().GetTopWindow()->Close();
|
||||
m_thread->kill();
|
||||
wxWindow * topWin = wxGetApp().GetTopWindow();
|
||||
if (topWin != NULL)
|
||||
topWin->Close();
|
||||
|
||||
delete m_config;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue