Explorar o código

Bug fix: Memory leak when deleting completed background transfers

(cherry picked from commit b228111058cdb7c8a18cad56b65b777af48b68e1)

Source commit: 24d52456cd38598bfdb76adcecb7c1e43bc13a27
Martin Prikryl %!s(int64=4) %!d(string=hai) anos
pai
achega
02fe7ae992
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      source/core/Queue.cpp

+ 1 - 0
source/core/Queue.cpp

@@ -882,6 +882,7 @@ bool __fastcall TTerminalQueue::ItemDelete(TQueueItem * Item)
         if (Result)
         if (Result)
         {
         {
           FDoneItems->Delete(Index);
           FDoneItems->Delete(Index);
+          delete Item;
           UpdateList = true;
           UpdateList = true;
         }
         }
       }
       }