[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) <aab@odoo.com>
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user