Bug 881237- Unlock mLock before logging, r=bsmedberg

This commit is contained in:
Arun 2013-10-09 10:38:34 -04:00
parent b59232a681
commit 4a18068463
2 changed files with 2 additions and 1 deletions

View File

@ -493,7 +493,7 @@ nsComponentManagerImpl::RegisterCIDEntryLocked(
existing = f->mModule->Description();
else
existing = "<unknown module>";
SafeMutexAutoUnlock unlock(mLock);
LogMessage("While registering XPCOM module %s, trying to re-register CID '%s' already registered by %s.",
aModule->Description().get(),
idstr,

View File

@ -18,6 +18,7 @@ DummyConstructorFunc(nsISupports* aOuter, const nsIID& aIID, void** aResult)
}
static const mozilla::Module::CIDEntry kTestCIDs[] = {
{ &kNS_TESTING_CID, false, NULL, DummyConstructorFunc },
{ &kNS_TESTING_CID, false, NULL, DummyConstructorFunc },
{ NULL }
};