Fix segmentaton fault on exit

This commit is contained in:
Geoffrey Merck F4FXL - KC3FRA 2019-04-19 08:27:47 +02:00
parent 9ab2841100
commit f7bf375bea

View file

@ -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;