check for existance before dereferencing
git-svn-id: svn://10.0.0.236/trunk@30469 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user