mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
fixes bug 234620 "Unknown random SEGV/seg fault/core dumps/crashes, only thing on is Mail/IMAP" r=dbaron sr=bienvenu
This commit is contained in:
parent
04b24dd95c
commit
a3a42ca4f6
@ -219,8 +219,11 @@ nsEventQueueImpl::StopAcceptingEvents()
|
||||
void
|
||||
nsEventQueueImpl::NotifyObservers(const char *aTopic)
|
||||
{
|
||||
nsresult rv;
|
||||
// we must not invoke the observer service from a background thread!
|
||||
if (!nsIThread::IsMainThread())
|
||||
return;
|
||||
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIObserverService> os = do_GetService("@mozilla.org/observer-service;1", &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
nsCOMPtr<nsIEventQueue> kungFuDeathGrip(this);
|
||||
|
Loading…
Reference in New Issue
Block a user