From ec1f393c39aa5bbac1158acf692271f8ce9518ce Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Wed, 18 Feb 2015 10:45:11 -0500 Subject: [PATCH] Dialog: Stop tracking instance in destroy() to avoid memory leaks Fixes #11125 Closes gh-1448 --- ui/dialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/dialog.js b/ui/dialog.js index a86f654d2..8381443ae 100644 --- a/ui/dialog.js +++ b/ui/dialog.js @@ -155,6 +155,7 @@ return $.widget( "ui.dialog", { var next, originalPosition = this.originalPosition; + this._untrackInstance(); this._destroyOverlay(); this.element -- 2.39.5