Commit 3ecb8c85 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Portal Type as Classes: Fix memory leak: Workflow method list was never...

Portal Type as Classes: Fix memory leak: Workflow method list was never emptied and thus reset Workflow Methods were never GC.
parent 34cb27f2
...@@ -117,6 +117,8 @@ def resetRegisteredWorkflowMethod(portal_type=None): ...@@ -117,6 +117,8 @@ def resetRegisteredWorkflowMethod(portal_type=None):
for method in workflow_method_registry: for method in workflow_method_registry:
method.reset(portal_type=portal_type) method.reset(portal_type=portal_type)
del workflow_method_registry[:]
class WorkflowMethod(Method): class WorkflowMethod(Method):
def __init__(self, method, id=None, reindex=1): def __init__(self, method, id=None, reindex=1):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment