urlmon: Fixed potential null dereference.

This commit is contained in:
Jacek Caban 2008-09-28 17:44:56 +02:00 committed by Alexandre Julliard
parent 65de799958
commit ec34ad38ef
1 changed files with 2 additions and 1 deletions

View File

@ -511,6 +511,7 @@ HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pb
hres = IBindCtx_RegisterObjectParam(pbc, BSCBHolder, (IUnknown*)bsc);
IBindStatusCallback_Release(bsc);
if(FAILED(hres)) {
if(prev)
IBindStatusCallback_Release(prev);
return hres;
}