зеркало из https://github.com/mozilla/gecko-dev.git
Fix to address memory allocation problems - Bug #8227
This commit is contained in:
Родитель
32ab7da25f
Коммит
14c4d97272
|
@ -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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче