Browse Source

fixed memory leak when task is removed via Task.remove()

Darren Ranalli 17 years ago
parent
commit
a88673a24a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/task/Task.py

+ 1 - 0
direct/src/task/Task.py

@@ -770,6 +770,7 @@ class TaskManager:
                 # because finishTask is safe to call twice
                 task.finishTask(self.fVerbose)
                 taskPriList.remove(i)
+                self.__removeTaskFromNameDict(task)
                 # Do not increment the iterator
                 continue
             # Now actually execute the task