From a26af4861dc53e8606a2417c1afbb255c1fe6618 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 24 Oct 2006 13:00:51 +0100 Subject: [PATCH] oleaut32: Fix a reference count leak in CreateDispTypeInfo. --- dlls/oleaut32/typelib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 5485c7970e3..f0e871a4fff 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -6788,6 +6788,10 @@ HRESULT WINAPI CreateDispTypeInfo( pTypeLibImpl->TypeInfoCount++; *pptinfo = (ITypeInfo*)pTIClass; + + ITypeInfo_AddRef(*pptinfo); + ITypeLib_Release((ITypeLib *)&pTypeLibImpl->lpVtbl); + return S_OK; } -- 2.11.4.GIT