mshtml: Don't NULL out the doc's window when unlinking the window.

This would cause a leak since we have a cyclic ref now.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2023-11-10 17:43:29 +02:00 committed by Alexandre Julliard
parent 96d611cb87
commit 1b3c6c39c7

View file

@ -3969,7 +3969,6 @@ static void HTMLWindow_unlink(DispatchEx *dispex)
if(This->doc) {
HTMLDocumentNode *doc = This->doc;
This->doc->window = NULL;
This->doc = NULL;
IHTMLDOMNode_Release(&doc->node.IHTMLDOMNode_iface);
}