From: TJ VanToll Date: Wed, 18 Feb 2015 15:45:11 +0000 (-0500) Subject: Dialog: Stop tracking instance in destroy() to avoid memory leaks X-Git-Tag: 1.12.0-beta.1~441 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec1f393c39aa5bbac1158acf692271f8ce9518ce;p=jquery-ui.git Dialog: Stop tracking instance in destroy() to avoid memory leaks Fixes #11125 Closes gh-1448 --- 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