oleaut32: Free the correct custom data inside ITypeInfo_fnRelease.

Since the code is inside the loop for function data, it should be 
freeing the function's custom data, not the interface's.
This commit is contained in:
Rob Shearman 2007-11-27 19:16:19 +00:00 committed by Alexandre Julliard
parent 942a70dc64
commit aaa6c4007f
1 changed files with 1 additions and 1 deletions

View File

@ -4514,7 +4514,7 @@ static ULONG WINAPI ITypeInfo_fnRelease(ITypeInfo2 *iface)
}
TLB_Free(pFInfo->funcdesc.lprgelemdescParam);
TLB_Free(pFInfo->pParamDesc);
for (pCustData = This->pCustData; pCustData; pCustData = pCustDataNext)
for (pCustData = pFInfo->pCustData; pCustData; pCustData = pCustDataNext)
{
VariantClear(&pCustData->data);