Module: wine Branch: master Commit: a26af4861dc53e8606a2417c1afbb255c1fe6618 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a26af4861dc53e8606a2417c1a...
Author: Rob Shearman rob@codeweavers.com Date: Tue Oct 24 13:00:51 2006 +0100
oleaut32: Fix a reference count leak in CreateDispTypeInfo.
---
dlls/oleaut32/typelib.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 5485c79..f0e871a 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;
}