Bug 881237: mLock released before logging the warning. r=bsmedberg

This commit is contained in:
Arun 2013-09-27 02:19:16 +05:30
parent 249ffd9e78
commit 86ba73d0e3
2 changed files with 2 additions and 2 deletions

View File

@ -494,6 +494,7 @@ nsComponentManagerImpl::RegisterCIDEntryLocked(
else
existing = "<unknown module>";
mLock.Unlock();
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 }
};
@ -28,5 +29,3 @@ static const mozilla::Module kTestModule = {
};
NSMODULE_DEFN(dummy) = &kTestModule;