Jacek Caban : atl100: Don't leak TLIBATTR in AtlComModuleUnregisterServer.
Alexandre Julliard
julliard at winehq.org
Tue Jan 15 13:46:18 CST 2013
Module: wine
Branch: master
Commit: 022d02cca526375a4942b844d2e5150008692ef1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=022d02cca526375a4942b844d2e5150008692ef1
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Jan 15 12:46:06 2013 +0100
atl100: Don't leak TLIBATTR in AtlComModuleUnregisterServer.
---
dlls/atl100/atl.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/atl100/atl.c b/dlls/atl100/atl.c
index 28321c2..c4867aa 100644
--- a/dlls/atl100/atl.c
+++ b/dlls/atl100/atl.c
@@ -493,8 +493,10 @@ HRESULT WINAPI AtlComModuleUnregisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeL
SysFreeString(path);
hres = ITypeLib_GetLibAttr(typelib, &attr);
- if(SUCCEEDED(hres))
+ if(SUCCEEDED(hres)) {
hres = UnRegisterTypeLib(&attr->guid, attr->wMajorVerNum, attr->wMinorVerNum, attr->lcid, attr->syskind);
+ ITypeLib_ReleaseTLibAttr(typelib, attr);
+ }
ITypeLib_Release(typelib);
if(FAILED(hres))
return hres;
More information about the wine-cvs
mailing list