mshtml: Call stop_binding before releasing binding object.
This commit is contained in:
parent
0c862dea00
commit
780aff0bea
|
@ -344,19 +344,23 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac
|
||||||
HRESULT hresult, LPCWSTR szError)
|
HRESULT hresult, LPCWSTR szError)
|
||||||
{
|
{
|
||||||
BSCallback *This = STATUSCLB_THIS(iface);
|
BSCallback *This = STATUSCLB_THIS(iface);
|
||||||
|
HRESULT hres;
|
||||||
|
|
||||||
TRACE("(%p)->(%08x %s)\n", This, hresult, debugstr_w(szError));
|
TRACE("(%p)->(%08x %s)\n", This, hresult, debugstr_w(szError));
|
||||||
|
|
||||||
/* NOTE: IE7 calls GetBindResult here */
|
/* NOTE: IE7 calls GetBindResult here */
|
||||||
|
|
||||||
|
hres = This->vtbl->stop_binding(This, hresult);
|
||||||
|
|
||||||
if(This->binding) {
|
if(This->binding) {
|
||||||
IBinding_Release(This->binding);
|
IBinding_Release(This->binding);
|
||||||
This->binding = NULL;
|
This->binding = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
list_remove(&This->entry);
|
list_remove(&This->entry);
|
||||||
|
This->doc = NULL;
|
||||||
|
|
||||||
return This->vtbl->stop_binding(This, hresult);
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
|
static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
|
||||||
|
|
Loading…
Reference in New Issue