Robert Shearman : oleaut32: Fix a leak of the module reference count.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Sep 7 03:45:41 CDT 2006


Module: wine
Branch: master
Commit: b7e88d8f8b378974760a2516b9acd50782892afa
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=b7e88d8f8b378974760a2516b9acd50782892afa

Author: Robert Shearman <rob at codeweavers.com>
Date:   Tue Aug 29 21:11:12 2006 +0100

oleaut32: Fix a leak of the module reference count.

---

 dlls/oleaut32/typelib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index b680fac..07da88f 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -2210,6 +2210,7 @@ static int TLB_ReadTypeLib(LPCWSTR pszFi
             *ppTypeLib = (ITypeLib2*)entry;
             ITypeLib_AddRef(*ppTypeLib);
             LeaveCriticalSection(&cache_section);
+            FreeLibrary(hinstDLL);
             return S_OK;
         }
     }




More information about the wine-cvs mailing list