Nullptr safety.
This commit is contained in:
parent
f399dc0c3a
commit
7844602210
|
@ -85,7 +85,6 @@ 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;
|
||||
#endif
|
||||
|
||||
|
@ -93,6 +92,7 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
|
|||
m_canvasType = GetCanvas()->GetBackend();
|
||||
|
||||
delete m_pcb;
|
||||
m_pcb = nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue