зеркало из https://github.com/mozilla/pjs.git
Bug 353280 nsThread::PushEventQueue leaks queue if !queue->IsInitialized (nsEventQueue::nsEventQueue() : mMonitor(nsAutoMonitor::NewMonitor("xpcom.eventqueue")) fails)
patch by darin r=timeless
This commit is contained in:
Родитель
79aaaa9c0d
Коммит
8d9227e26f
|
@ -562,8 +562,10 @@ NS_IMETHODIMP
|
|||
nsThread::PushEventQueue(nsIThreadEventFilter *filter)
|
||||
{
|
||||
nsChainedEventQueue *queue = new nsChainedEventQueue(filter);
|
||||
if (!queue || !queue->IsInitialized())
|
||||
if (!queue || !queue->IsInitialized()) {
|
||||
delete queue;
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
nsAutoLock lock(mLock);
|
||||
queue->mNext = mEvents;
|
||||
|
|
Загрузка…
Ссылка в новой задаче