Rob Shearman : oleaut32: Free the correct custom data inside ITypeInfo_fnRelease.
Module: wine Branch: master Commit: aaa6c4007fbe619bb6d369d0341d03001707f642 URL: http://source.winehq.org/git/wine.git/?a=commit;h=aaa6c4007fbe619bb6d369d034... Author: Rob Shearman <rob(a)codeweavers.com> Date: Tue Nov 27 19:16:19 2007 +0000 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 8e37de0..ab5df57 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);
participants (1)
-
Alexandre Julliard