Skip to content

Commit 4b6583c

Browse files
committed
Dialog: Stop tracking instance in destroy() to avoid memory leaks
Fixes #11125 Closes gh-1448
1 parent 17c7f69 commit 4b6583c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/dialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ return $.widget( "ui.dialog", {
155155
var next,
156156
originalPosition = this.originalPosition;
157157

158+
this._untrackInstance();
158159
this._destroyOverlay();
159160

160161
this.element

0 commit comments

Comments
 (0)