(cherry picked from commit b228111058cdb7c8a18cad56b65b777af48b68e1) Source commit: 24d52456cd38598bfdb76adcecb7c1e43bc13a27
@@ -882,6 +882,7 @@ bool __fastcall TTerminalQueue::ItemDelete(TQueueItem * Item)
if (Result)
{
FDoneItems->Delete(Index);
+ delete Item;
UpdateList = true;
}