msxml3: Fix leaking the BindStatusCallback if bind_url fails.

This commit is contained in:
Michael Karcher 2008-10-11 23:58:43 +02:00 committed by Alexandre Julliard
parent ae2017a984
commit 352dc0fc0d
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}