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++;
|
pTypeLibImpl->TypeInfoCount++;
|
||||||
|
|
||||||
*pptinfo = (ITypeInfo*)pTIClass;
|
*pptinfo = (ITypeInfo*)pTIClass;
|
||||||
|
|
||||||
|
ITypeInfo_AddRef(*pptinfo);
|
||||||
|
ITypeLib_Release((ITypeLib *)&pTypeLibImpl->lpVtbl);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user