]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Stop tracking instance in destroy() to avoid memory leaks
authorTJ VanToll <tj.vantoll@gmail.com>
Wed, 18 Feb 2015 15:45:11 +0000 (10:45 -0500)
committerTJ VanToll <tj.vantoll@gmail.com>
Fri, 20 Feb 2015 14:48:42 +0000 (09:48 -0500)
Fixes #11125
Closes gh-1448

ui/dialog.js

index a86f654d2a1d3749ff96672102b7b33b6293f5cf..8381443aec68f94b4a3d92dc518e285a1175bcd3 100644 (file)
@@ -155,6 +155,7 @@ return $.widget( "ui.dialog", {
                var next,
                        originalPosition = this.originalPosition;
 
+               this._untrackInstance();
                this._destroyOverlay();
 
                this.element