Prevent crash on exit due to simulator settings being double freed

This commit is contained in:
Jon Evans 2022-12-07 21:04:49 -05:00
parent eb05d803df
commit 5251ea6f27
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@ SIM_PLOT_FRAME::~SIM_PLOT_FRAME()
{
NULL_REPORTER devnull;
m_simulator->Settings() = nullptr;
m_simulator->Attach( nullptr, devnull );
m_simulator->SetReporter( nullptr );
delete m_reporter;