зеркало из https://github.com/mozilla/gecko-dev.git
check for existance before dereferencing
This commit is contained in:
Родитель
b0094e1e0f
Коммит
bc476bdf98
|
@ -78,8 +78,10 @@ EventQueueStack::EventQueueStack(EventQueueStack* next)
|
|||
mEventQueue = NULL;
|
||||
}
|
||||
|
||||
if (NS_FAILED(mEventQueue->Init()))
|
||||
mEventQueue = NULL;
|
||||
if (mEventQueue) {
|
||||
if (NS_FAILED(mEventQueue->Init()))
|
||||
mEventQueue = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
EventQueueStack::~EventQueueStack()
|
||||
|
|
|
@ -78,8 +78,10 @@ EventQueueStack::EventQueueStack(EventQueueStack* next)
|
|||
mEventQueue = NULL;
|
||||
}
|
||||
|
||||
if (NS_FAILED(mEventQueue->Init()))
|
||||
mEventQueue = NULL;
|
||||
if (mEventQueue) {
|
||||
if (NS_FAILED(mEventQueue->Init()))
|
||||
mEventQueue = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
EventQueueStack::~EventQueueStack()
|
||||
|
|
Загрузка…
Ссылка в новой задаче