Fix to address memory allocation problems - Bug #8227

This commit is contained in:
dougt%netscape.com 1999-07-18 19:13:27 +00:00
Родитель 32ab7da25f
Коммит 14c4d97272
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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