Commit b7e88d8f authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

oleaut32: Fix a leak of the module reference count.

parent cc90540c
......@@ -2210,6 +2210,7 @@ static int TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath, IT
*ppTypeLib = (ITypeLib2*)entry;
ITypeLib_AddRef(*ppTypeLib);
LeaveCriticalSection(&cache_section);
FreeLibrary(hinstDLL);
return S_OK;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment