fixes bug 338075 "CID 538, resource leak" patch by Feng Qian, r=darin

This commit is contained in:
darin%meer.net 2006-05-16 00:11:38 +00:00
parent 42f2f41bff
commit 54d7419a37

View File

@ -537,6 +537,7 @@ nsProxyObject::convertMiniVariantToVariant(nsXPTMethodInfo *methodInfo,
if ((mProxyType & NS_PROXY_ASYNC) && paramInfo.IsDipper())
{
NS_WARNING("Async proxying of out parameters is not supported");
free(*fullParam);
return NS_ERROR_PROXY_INVALID_OUT_PARAMETER;
}
uint8 flags = paramInfo.IsOut() ? nsXPTCVariant::PTR_IS_DATA : 0;