oleaut32: Fix a reference count leak in CreateDispTypeInfo.
This commit is contained in:
parent
d72ef78fa6
commit
a26af4861d
|
@ -6788,6 +6788,10 @@ HRESULT WINAPI CreateDispTypeInfo(
|
|||
pTypeLibImpl->TypeInfoCount++;
|
||||
|
||||
*pptinfo = (ITypeInfo*)pTIClass;
|
||||
|
||||
ITypeInfo_AddRef(*pptinfo);
|
||||
ITypeLib_Release((ITypeLib *)&pTypeLibImpl->lpVtbl);
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue