oleaut32: Fix a leak of the module reference count.

This commit is contained in:
Robert Shearman 2006-08-29 21:11:12 +01:00 committed by Alexandre Julliard
parent cc90540c9b
commit b7e88d8f8b
1 changed files with 1 additions and 0 deletions

View File

@ -2210,6 +2210,7 @@ static int TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath, IT
*ppTypeLib = (ITypeLib2*)entry; *ppTypeLib = (ITypeLib2*)entry;
ITypeLib_AddRef(*ppTypeLib); ITypeLib_AddRef(*ppTypeLib);
LeaveCriticalSection(&cache_section); LeaveCriticalSection(&cache_section);
FreeLibrary(hinstDLL);
return S_OK; return S_OK;
} }
} }