From aaa6c4007fbe619bb6d369d0341d03001707f642 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 27 Nov 2007 19:16:19 +0000 Subject: [PATCH] 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. --- dlls/oleaut32/typelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 8e37de09192..ab5df577261 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -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);