1 Jan
2009
1 Jan
'09
6:58 p.m.
2009/1/1 Michael Karcher <wine(a)mkarcher.dialup.fu-berlin.de>:
+ hr = IPropertyBag_RemoteRead_Proxy(This, pszPropName, &outVariant, pErrorLog, + V_VT(pVar), pUnk); + if(SUCCEEDED(hr)) + hr = VariantCopy(pVar, &outVariant); + + return hr;
You're leaking the memory in outVariant here, since VariantCopy does a deep copy of all of the data. Is there a reason you don't just pass pVar into IPropertyBag_RemoteRead_Proxy? -- Rob Shearman