From a88673a24a5dd8a9de4191fd0f49c7456654775a Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Mon, 5 May 2008 20:22:35 +0000 Subject: [PATCH] fixed memory leak when task is removed via Task.remove() --- direct/src/task/Task.py | 1 + 1 file changed, 1 insertion(+) diff --git a/direct/src/task/Task.py b/direct/src/task/Task.py index 6e9d15777e..eb48deb128 100644 --- a/direct/src/task/Task.py +++ b/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