2009/1/1 Michael Karcher <w...@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