This will reduce memory leak size in tests. But the proper fix should be lower level in the code (probably in Owl according to the stack) to ensure unnecessary references aren't kept anymore. Part of task-2850875 closes odoo/odoo#90934 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>