aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2015-02-18 10:45:11 -0500
committerTJ VanToll <tj.vantoll@gmail.com>2015-02-20 09:48:42 -0500
commitec1f393c39aa5bbac1158acf692271f8ce9518ce (patch)
treefd547615ef2b2a4a460b5abfa16a604c60b3645c
parentd58051ba1a7d06b503853645b13babfc9d8a0242 (diff)
downloadjquery-ui-ec1f393c39aa5bbac1158acf692271f8ce9518ce.tar.gz
jquery-ui-ec1f393c39aa5bbac1158acf692271f8ce9518ce.zip
Dialog: Stop tracking instance in destroy() to avoid memory leaks
Fixes #11125 Closes gh-1448
-rw-r--r--ui/dialog.js1
1 files changed, 1 insertions, 0 deletions
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