mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Backed out changeset aa200a803e07
This commit is contained in:
parent
c2ed6a11c4
commit
746351dc18
@ -1324,7 +1324,6 @@ FreeFactoryEntries(const nsID& aCID,
|
||||
{
|
||||
aEntry->mFactory = NULL;
|
||||
aEntry->mServiceObject = NULL;
|
||||
delete aEntry;
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
@ -1798,7 +1797,6 @@ nsComponentManagerImpl::UnregisterFactory(const nsCID& aClass,
|
||||
// nsFactoryEntry::GetFactory)
|
||||
f->mFactory.swap(dyingFactory);
|
||||
f->mServiceObject.swap(dyingServiceObject);
|
||||
delete f;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
@ -1943,7 +1941,6 @@ nsFactoryEntry::nsFactoryEntry(const mozilla::Module::CIDEntry* entry,
|
||||
: mCIDEntry(entry)
|
||||
, mModule(module)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsFactoryEntry);
|
||||
}
|
||||
|
||||
nsFactoryEntry::nsFactoryEntry(const nsCID& aCID, nsIFactory* factory)
|
||||
@ -1951,7 +1948,6 @@ nsFactoryEntry::nsFactoryEntry(const nsCID& aCID, nsIFactory* factory)
|
||||
, mModule(NULL)
|
||||
, mFactory(factory)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsFactoryEntry);
|
||||
mozilla::Module::CIDEntry* e = new mozilla::Module::CIDEntry();
|
||||
nsCID* cid = new nsCID;
|
||||
*cid = aCID;
|
||||
@ -1966,7 +1962,6 @@ nsFactoryEntry::~nsFactoryEntry()
|
||||
delete mCIDEntry->cid;
|
||||
delete mCIDEntry;
|
||||
}
|
||||
MOZ_COUNT_DTOR(nsFactoryEntry);
|
||||
}
|
||||
|
||||
already_AddRefed<nsIFactory>
|
||||
|
Loading…
x
Reference in New Issue
Block a user