oleaut32: Fix a reference count leak in CreateDispTypeInfo.

This commit is contained in:
Rob Shearman 2006-10-24 13:00:51 +01:00 committed by Alexandre Julliard
parent d72ef78fa6
commit a26af4861d
1 changed files with 4 additions and 0 deletions

View File

@ -6788,6 +6788,10 @@ HRESULT WINAPI CreateDispTypeInfo(
pTypeLibImpl->TypeInfoCount++;
*pptinfo = (ITypeInfo*)pTIClass;
ITypeInfo_AddRef(*pptinfo);
ITypeLib_Release((ITypeLib *)&pTypeLibImpl->lpVtbl);
return S_OK;
}