From 04ab6e0388f248b2490c2bc663528657ba39051a 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 (cherry picked from commit ec1f393c39aa5bbac1158acf692271f8ce9518ce) --- ui/dialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/dialog.js b/ui/dialog.js index e5c0bfe21..d10b83657 100644 --- a/ui/dialog.js +++ b/ui/dialog.js @@ -150,6 +150,7 @@ return $.widget( "ui.dialog", { var next, originalPosition = this.originalPosition; + this._untrackInstance(); this._destroyOverlay(); this.element -- 2.39.5