Skip to content

Commit 04ab6e0

Browse files
tjvantollscottgonzalez
authored andcommitted
Dialog: Stop tracking instance in destroy() to avoid memory leaks
Fixes #11125 Closes gh-1448 (cherry picked from commit ec1f393)
1 parent b371063 commit 04ab6e0

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
@@ -150,6 +150,7 @@ return $.widget( "ui.dialog", {
150150
var next,
151151
originalPosition = this.originalPosition;
152152

153+
this._untrackInstance();
153154
this._destroyOverlay();
154155

155156
this.element

0 commit comments

Comments
 (0)