msxml3: Fix leaking the BindStatusCallback if bind_url fails.
This commit is contained in:
parent
ae2017a984
commit
352dc0fc0d
|
@ -296,6 +296,12 @@ HRESULT bind_url(LPCWSTR url, HRESULT (*onDataAvailable)(void*,char*,DWORD), voi
|
|||
IBindCtx_Release(pbc);
|
||||
}
|
||||
|
||||
if(FAILED(hr))
|
||||
{
|
||||
IBindStatusCallback_Release((IBindStatusCallback*)&bsc->lpVtbl);
|
||||
bsc = NULL;
|
||||
}
|
||||
|
||||
*ret = bsc;
|
||||
return hr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue