urlmon: Fix a reference count leak in RegisterBindStatusCallback.

This commit is contained in:
Rob Shearman 2007-11-19 15:33:33 +00:00 committed by Alexandre Julliard
parent e301d17211
commit 862aaaba58
1 changed files with 3 additions and 1 deletions

View File

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