From 4db1b0081533ed93c06f9be2934f3b469fca22af Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 19 Sep 2013 16:12:42 +0200 Subject: [PATCH] mshtml: Keep moniker reference after start_binding call. --- dlls/mshtml/navigate.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index fb639a867a6..94c771781c8 100644 --- a/dlls/mshtml/navigate.c +++ b/dlls/mshtml/navigate.c @@ -360,6 +360,11 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac This->binding = NULL; } + if(This->mon) { + IMoniker_Release(This->mon); + This->mon = NULL; + } + list_remove(&This->entry); list_init(&This->entry); This->window = NULL; @@ -823,9 +828,6 @@ HRESULT start_binding(HTMLInnerWindow *inner_window, BSCallback *bscallback, IBi if(str) IStream_Release(str); - IMoniker_Release(bscallback->mon); - bscallback->mon = NULL; - return S_OK; } -- 2.11.4.GIT