Attempt to avoid double-free when shutting down on Windows
This commit is contained in:
parent
5bbe21f540
commit
3460c50afa
|
@ -54,6 +54,7 @@ PCB_PROPERTIES_PANEL::~PCB_PROPERTIES_PANEL()
|
||||||
wxPGGlobalVars->m_mapEditorClasses.erase( it );
|
wxPGGlobalVars->m_mapEditorClasses.erase( it );
|
||||||
|
|
||||||
delete static_cast<PG_UNIT_EDITOR*>( it->second );
|
delete static_cast<PG_UNIT_EDITOR*>( it->second );
|
||||||
|
it->second = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue