atl100: Don't leak TLIBATTR in AtlComModuleUnregisterServer.

This commit is contained in:
Jacek Caban 2013-01-15 12:46:06 +01:00 committed by Alexandre Julliard
parent 4ad22987bc
commit 022d02cca5
1 changed files with 3 additions and 1 deletions

View File

@ -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;