eeschema: Fixed use-after-free on exit when paste operation is aborted
This commit is contained in:
parent
c93ab4d5da
commit
d5095252a0
|
@ -220,8 +220,7 @@ void AbortBlockCurrentCommand( EDA_DRAW_PANEL* aPanel, wxDC* aDC )
|
||||||
screen->SetCurItem( NULL );
|
screen->SetCurItem( NULL );
|
||||||
|
|
||||||
// Delete the picked wrapper if this is a picked list.
|
// Delete the picked wrapper if this is a picked list.
|
||||||
if( screen->m_BlockLocate.GetCommand() != BLOCK_PASTE )
|
screen->m_BlockLocate.ClearItemsList();
|
||||||
screen->m_BlockLocate.ClearItemsList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
screen->m_BlockLocate.SetState( STATE_NO_BLOCK );
|
screen->m_BlockLocate.SetState( STATE_NO_BLOCK );
|
||||||
|
|
Loading…
Reference in New Issue