Fix leak of empty PICKED_ITEMS_LIST.

This commit is contained in:
Jeff Young 2020-01-11 16:31:29 +00:00
parent 677fcee0d2
commit 17710c15d3
1 changed files with 4 additions and 0 deletions

View File

@ -355,6 +355,10 @@ void PCB_EDIT_FRAME::RunActionPlugin( ACTION_PLUGIN* aActionPlugin )
OnModify();
GetScreen()->PushCommandToUndoList( oldBuffer );
}
else
{
delete oldBuffer;
}
ActivateGalCanvas();
}