Fix double free in PL_EDIT_TOOL

Fixes https://gitlab.com/kicad/code/kicad/-/issues/4887
This commit is contained in:
Jon Evans 2020-07-16 18:56:30 -04:00
parent eb37c89a7b
commit 261614d469
1 changed files with 0 additions and 1 deletions

View File

@ -328,7 +328,6 @@ int PL_EDIT_TOOL::DoDelete( const TOOL_EVENT& aEvent )
m_selectionTool->RemoveItemFromSel( item );
getView()->Remove( item );
delete item;
}
delete dataItem;