From: Gabriel Ivăncescu gabrielopcode@gmail.com
So we don't traverse them again later; they could have been destroyed, but they don't get removed from the list since script_global is set to NULL (which could also be destroyed first).
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/htmlwindow.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 31255e7cebc..b56c6a327cc 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -128,6 +128,7 @@ static void detach_inner_window(HTMLInnerWindow *window)
LIST_FOR_EACH_ENTRY(doc_iter, &window->documents, HTMLDocumentNode, script_global_entry) doc_iter->script_global = NULL; + list_init(&window->documents); if(doc) detach_document_node(doc);