Fix double free in PL_EDIT_TOOL
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4887
This commit is contained in:
parent
eb37c89a7b
commit
261614d469
|
@ -328,7 +328,6 @@ int PL_EDIT_TOOL::DoDelete( const TOOL_EVENT& aEvent )
|
|||
m_selectionTool->RemoveItemFromSel( item );
|
||||
|
||||
getView()->Remove( item );
|
||||
delete item;
|
||||
}
|
||||
|
||||
delete dataItem;
|
||||
|
|
Loading…
Reference in New Issue