From: Gabriel Ivăncescu gabrielopcode@gmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53999 Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/nsevents.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/mshtml/nsevents.c b/dlls/mshtml/nsevents.c index 875d2b5bcf6..f15e57df38d 100644 --- a/dlls/mshtml/nsevents.c +++ b/dlls/mshtml/nsevents.c @@ -343,6 +343,9 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
IHTMLDOMNode_AddRef(&doc->node.IHTMLDOMNode_iface);
+ /* Keep a ref to the window as well, some apps navigate during the notifications */ + IHTMLWindow2_AddRef(&doc->window->base.IHTMLWindow2_iface); + if(doc_obj) handle_docobj_load(doc_obj);
@@ -382,6 +385,7 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
doc->window->performance_timing->load_event_end_time = get_time_stamp();
+ IHTMLWindow2_Release(&doc->window->base.IHTMLWindow2_iface); IHTMLDOMNode_Release(&doc->node.IHTMLDOMNode_iface); return NS_OK; }