mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Stop timers on closing Atlas
Otherwise we might try to render a view when half the infrastructure is already taken down, which results in segfaults or asserts. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
16188c7305
commit
f4bb99094d
1 changed files with 3 additions and 0 deletions
|
|
@ -699,6 +699,9 @@ void ScenarioEditor::OnClose(wxCloseEvent& event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_Timer.Stop();
|
||||||
|
m_RenderTimer.Stop();
|
||||||
|
|
||||||
m_ToolManager.SetCurrentTool(_T(""));
|
m_ToolManager.SetCurrentTool(_T(""));
|
||||||
|
|
||||||
m_FileHistory.SaveToSubDir(*wxConfigBase::Get());
|
m_FileHistory.SaveToSubDir(*wxConfigBase::Get());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue