mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
fixed memory leak when task is removed via Task.remove()
This commit is contained in:
parent
d031eb8688
commit
a88673a24a
@ -770,6 +770,7 @@ class TaskManager:
|
|||||||
# because finishTask is safe to call twice
|
# because finishTask is safe to call twice
|
||||||
task.finishTask(self.fVerbose)
|
task.finishTask(self.fVerbose)
|
||||||
taskPriList.remove(i)
|
taskPriList.remove(i)
|
||||||
|
self.__removeTaskFromNameDict(task)
|
||||||
# Do not increment the iterator
|
# Do not increment the iterator
|
||||||
continue
|
continue
|
||||||
# Now actually execute the task
|
# Now actually execute the task
|
||||||
|
Loading…
x
Reference in New Issue
Block a user