mshtml: Use detach_document_node in detach_gecko_browser.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-03-13 17:54:04 +01:00 committed by Alexandre Julliard
parent 1d04b60446
commit d49d83a18e
1 changed files with 1 additions and 2 deletions

View File

@ -2197,8 +2197,7 @@ void detach_gecko_browser(GeckoBrowser *This)
while(!list_empty(&This->document_nodes)) {
HTMLDocumentNode *doc = LIST_ENTRY(list_head(&This->document_nodes), HTMLDocumentNode, browser_entry);
list_remove(&doc->browser_entry);
doc->browser = NULL;
detach_document_node(doc);
}
while(!list_empty(&This->outer_windows)) {