Nullptr safety.

This commit is contained in:
Jeff Young 2023-01-18 01:30:40 +00:00
parent f399dc0c3a
commit 7844602210
1 changed files with 2 additions and 2 deletions

View File

@ -85,14 +85,14 @@ PCB_BASE_FRAME::PCB_BASE_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame
PCB_BASE_FRAME::~PCB_BASE_FRAME()
{
#if defined( KICAD_USE_3DCONNEXION )
if( m_spaceMouse != nullptr )
delete m_spaceMouse;
delete m_spaceMouse;
#endif
// Ensure m_canvasType is up to date, to save it in config
m_canvasType = GetCanvas()->GetBackend();
delete m_pcb;
m_pcb = nullptr;
}