Rob Shearman : oleaut32: Fix a leak of a typelib object in OLEFontImpl_GetTypeInfo.

Alexandre Julliard julliard at winehq.org
Mon Feb 4 08:42:57 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Jan 31 14:45:35 2008 +0000

oleaut32: Fix a leak of a typelib object in OLEFontImpl_GetTypeInfo.

---

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

diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c
index 3376c0c..fe787a7 100644
--- a/dlls/oleaut32/olefont.c
+++ b/dlls/oleaut32/olefont.c
@@ -1215,6 +1215,7 @@ static HRESULT WINAPI OLEFontImpl_GetTypeInfo(
     return hres;
   }
   hres = ITypeLib_GetTypeInfoOfGuid(tl, &IID_IFontDisp, ppTInfo);
+  ITypeLib_Release(tl);
   if (FAILED(hres)) {
     FIXME("Did not IDispatch typeinfo from typelib, hres %x\n",hres);
   }




More information about the wine-cvs mailing list