Module: wine Branch: master Commit: d49d83a18e7fee9122d94adf1a675d4e47c2eed5 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d49d83a18e7fee9122d94adf1...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Mar 13 17:54:04 2019 +0100
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
---
dlls/mshtml/nsembed.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 956ba37..33d251d 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -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)) {