Rob Shearman : urlmon: Fix a reference count leak in RegisterBindStatusCallback.
Alexandre Julliard
julliard at winehq.org
Tue Nov 20 10:54:50 CST 2007
Module: wine
Branch: master
Commit: 862aaaba5836737617d3cf3a561664f992ab0da4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=862aaaba5836737617d3cf3a561664f992ab0da4
Author: Rob Shearman <rob at codeweavers.com>
Date: Mon Nov 19 15:33:33 2007 +0000
urlmon: Fix a reference count leak in RegisterBindStatusCallback.
---
dlls/urlmon/bindctx.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/bindctx.c b/dlls/urlmon/bindctx.c
index 9d24707..13dd987 100644
--- a/dlls/urlmon/bindctx.c
+++ b/dlls/urlmon/bindctx.c
@@ -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;
More information about the wine-cvs
mailing list