Browse Source

Dispose of removed task in ttask_handler.processqueue

Pierre Muller 1 month ago
parent
commit
197818631a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/ctask.pas

+ 1 - 0
compiler/ctask.pas

@@ -350,6 +350,7 @@ begin
         {$IFDEF DEBUG_CTASK}Writeln(t.module.ToString,' is finished, removing from task list');{$ENDIF}
         hash.Remove(t.module);
         list.Remove(t);
+        FreeAndNil(t);
         end;
 
       // first search for any module that is ready to be written as ppu