Jacek Caban : mshtml: Call stop_binding before releasing binding object.
Alexandre Julliard
julliard at winehq.org
Tue Aug 11 10:47:10 CDT 2009
Module: wine
Branch: master
Commit: 780aff0bea4893c0b6d8094955344b4fe316ea0a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=780aff0bea4893c0b6d8094955344b4fe316ea0a
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Aug 10 19:17:05 2009 +0200
mshtml: Call stop_binding before releasing binding object.
---
dlls/mshtml/navigate.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index f882e6c..eee0b34 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -344,19 +344,23 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac
HRESULT hresult, LPCWSTR szError)
{
BSCallback *This = STATUSCLB_THIS(iface);
+ HRESULT hres;
TRACE("(%p)->(%08x %s)\n", This, hresult, debugstr_w(szError));
/* NOTE: IE7 calls GetBindResult here */
+ hres = This->vtbl->stop_binding(This, hresult);
+
if(This->binding) {
IBinding_Release(This->binding);
This->binding = NULL;
}
list_remove(&This->entry);
+ This->doc = NULL;
- return This->vtbl->stop_binding(This, hresult);
+ return hres;
}
static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
More information about the wine-cvs
mailing list