From ed4755df8af24abf1ccdf35cedc26bf1d2425d67 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Wed, 16 Mar 2016 19:25:29 +0900 Subject: [PATCH] Portal Type as Classes: Fix memory leak: Workflow method list was never emptied and thus reset Workflow Methods were never GC. --- product/ERP5Type/Base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index f133f11347..860e14ead7 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -117,6 +117,8 @@ def resetRegisteredWorkflowMethod(portal_type=None): for method in workflow_method_registry: method.reset(portal_type=portal_type) + del workflow_method_registry[:] + class WorkflowMethod(Method): def __init__(self, method, id=None, reindex=1): -- 2.30.9