We don't hold a refcount to the location, but only a weak ref (as tests show). Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- dlls/mshtml/htmlwindow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 0b25e71..4e5b036 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -269,10 +269,8 @@ static void release_inner_window(HTMLInnerWindow *This) heap_free(This->global_props[i].name); heap_free(This->global_props); - if(This->location) { + if(This->location) This->location->window = NULL; - IHTMLLocation_Release(&This->location->IHTMLLocation_iface); - } if(This->image_factory) { This->image_factory->window = NULL; -- 2.31.1