Skip to content

Commit

Permalink
Dialog: Stop tracking instance in destroy() to avoid memory leaks
Browse files Browse the repository at this point in the history
Fixes #11125
Closes gh-1448
  • Loading branch information
tjvantoll committed Feb 20, 2015
1 parent d58051b commit ec1f393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ return $.widget( "ui.dialog", {
var next,
originalPosition = this.originalPosition;

this._untrackInstance();
this._destroyOverlay();

this.element
Expand Down

0 comments on commit ec1f393

Please sign in to comment.