From b7e88d8f8b378974760a2516b9acd50782892afa Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 29 Aug 2006 21:11:12 +0100 Subject: [PATCH] oleaut32: Fix a leak of the module reference count. --- dlls/oleaut32/typelib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index b680facc018..07da88f6995 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -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; } } -- 2.11.4.GIT