Skip to content

Commit ec1f393

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

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)