Jacek Caban : mshtml: Keep moniker reference after start_binding call.

Alexandre Julliard julliard at winehq.org
Thu Sep 19 17:21:07 CDT 2013


Module: wine
Branch: master
Commit: 4db1b0081533ed93c06f9be2934f3b469fca22af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4db1b0081533ed93c06f9be2934f3b469fca22af

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Sep 19 16:12:42 2013 +0200

mshtml: Keep moniker reference after start_binding call.

---

 dlls/mshtml/navigate.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index fb639a8..94c7717 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;
 }
 




More information about the wine-cvs mailing list