Fix to address memory allocation problems - Bug #8227

This commit is contained in:
dougt%netscape.com 1999-07-18 19:13:27 +00:00
parent 32ab7da25f
commit 14c4d97272

View File

@ -174,11 +174,13 @@ nsProxyObject::Post( PRUint32 methodIndex, nsXPTMethodInfo *methodInfo, nsXPTCMi
if (event == nsnull)
{
mDestQueue->ExitMonitor();
return NS_ERROR_OUT_OF_MEMORY;
return NS_ERROR_OUT_OF_MEMORY;
}
nsProxyObjectCallInfo *proxyInfo = new nsProxyObjectCallInfo(this, methodIndex, fullParam, paramCount, event);
if (proxyInfo == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
PL_InitEvent(event,
proxyInfo,