[07/13] msxml3: Fix leaking the BindStatusCallback if bind_url fails.
Michael Karcher
wine at mkarcher.dialup.fu-berlin.de
Sat Oct 11 16:58:43 CDT 2008
---
dlls/msxml3/bsc.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/bsc.c b/dlls/msxml3/bsc.c
index 5dc9d18..bc1202a 100644
--- a/dlls/msxml3/bsc.c
+++ b/dlls/msxml3/bsc.c
@@ -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;
}
--
1.5.6.5
More information about the wine-patches
mailing list