Commit aaa6c400 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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.
parent 942a70dc
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment