oleaut32: Fix a leak of the module reference count.
This commit is contained in:
parent
cc90540c9b
commit
b7e88d8f8b
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue