From 9c5fecdf9070d03942499a4df1d1151904e63ff9 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 19 Oct 2021 14:50:46 +0000 Subject: [PATCH] [FIX] web: ActionContainer: properly unbind handler This isn't a problem in production, because the ActionContainer is never destroyed, but it caused a small memory leak in the test environment. closes odoo/odoo#78698 X-original-commit: d01c89d80d58763e45309dbcfbf83f852866982e Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/webclient/actions/action_container.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/webclient/actions/action_container.js b/addons/web/static/src/webclient/actions/action_container.js index 7bb144f229d..64fdd6bbb8b 100644 --- a/addons/web/static/src/webclient/actions/action_container.js +++ b/addons/web/static/src/webclient/actions/action_container.js @@ -16,9 +16,9 @@ export class ActionContainer extends Component { }); } - destroy() { + __destroy() { this.env.bus.off("ACTION_MANAGER:UPDATE", this); - super.destroy(); + super.__destroy(); } } ActionContainer.components = { ActionDialog };