From ef35702cbcc10caa203eccdfe6ea5166fdac15c4 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 11 May 2017 10:47:18 +0200 Subject: [FIX] web: remove some memory leak --- addons/web/static/src/js/views/graph/graph_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/views/graph/graph_controller.js') diff --git a/addons/web/static/src/js/views/graph/graph_controller.js b/addons/web/static/src/js/views/graph/graph_controller.js index 040311a3919..388d390701c 100644 --- a/addons/web/static/src/js/views/graph/graph_controller.js +++ b/addons/web/static/src/js/views/graph/graph_controller.js @@ -30,7 +30,7 @@ var GraphController = AbstractController.extend({ destroy: function () { if (this.$buttons) { // remove jquery's tooltip() handlers - this.$buttons.find('button').off(); + this.$buttons.find('button').off().tooltip('destroy'); } this._super.apply(this, arguments); }, -- cgit v1.2.3