Fix leak of empty PICKED_ITEMS_LIST.
This commit is contained in:
parent
677fcee0d2
commit
17710c15d3
|
@ -355,6 +355,10 @@ void PCB_EDIT_FRAME::RunActionPlugin( ACTION_PLUGIN* aActionPlugin )
|
||||||
OnModify();
|
OnModify();
|
||||||
GetScreen()->PushCommandToUndoList( oldBuffer );
|
GetScreen()->PushCommandToUndoList( oldBuffer );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
delete oldBuffer;
|
||||||
|
}
|
||||||
|
|
||||||
ActivateGalCanvas();
|
ActivateGalCanvas();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue