Dialog: Stop tracking instance in destroy() to avoid memory leaks

Fixes #11125
Closes gh-1448
This commit is contained in:
TJ VanToll 2015-02-18 10:45:11 -05:00
parent d58051ba1a
commit ec1f393c39

View File

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