Don't access tools after they've shut down.
This commit is contained in:
parent
35a5781f68
commit
07673d3c11
|
@ -308,13 +308,18 @@ SCH_EDIT_FRAME::~SCH_EDIT_FRAME()
|
|||
{
|
||||
// Shutdown all running tools
|
||||
if( m_toolManager )
|
||||
{
|
||||
m_toolManager->ShutdownAllTools();
|
||||
delete m_toolManager;
|
||||
m_toolManager = nullptr;
|
||||
}
|
||||
|
||||
delete m_item_to_repeat; // we own the cloned object, see this->SaveCopyForRepeatItem()
|
||||
|
||||
SetScreen( NULL );
|
||||
|
||||
delete m_schematic;
|
||||
m_schematic = nullptr;
|
||||
|
||||
// Close the project if we are standalone, so it gets cleaned up properly
|
||||
if( Kiface().IsSingle() )
|
||||
|
|
Loading…
Reference in New Issue