From aed4e74bb9a77537ffc41ea701b6752ee840874b Mon Sep 17 00:00:00 2001 From: weber-software Date: Wed, 12 Aug 2015 16:38:21 +0200 Subject: [PATCH] fix memory leak inside ColumnReorder extension destroy the _columnDndSources before assigning a new empty array --- extensions/ColumnReorder.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/ColumnReorder.js b/extensions/ColumnReorder.js index 6f76e8cf1..bfe0c8092 100644 --- a/extensions/ColumnReorder.js +++ b/extensions/ColumnReorder.js @@ -169,6 +169,12 @@ define([ // After header is rendered, set up a dnd source on each of its subrows. + if (this._columnDndSources) { + // Destroy old dnd sources. + arrayUtil.forEach(this._columnDndSources, function (source) { + source.destroy(); + }); + } this._columnDndSources = []; if (this.columnSets) {