remove the dll from mDllStore if we're about to delete it. keeps us from crashing if we try to load a dll after we fail once.

This commit is contained in:
toshok@hungry.com
1999-09-09 00:47:22 +00:00
parent c11a16f4e1
commit 2fdff0273f

View File

@@ -168,6 +168,11 @@ nsNativeComponentLoader::GetFactory(const nsIID & aCID,
out:
if (NS_FAILED(rv)) {
// remove the dll from the hashtable so future lookups don't
// return the deleted object.
nsStringKey key(aLocation);
mDllStore->Remove(&key);
PR_ASSERT(NULL == mDllStore->Get(&key));
rv = NS_ERROR_FACTORY_NOT_LOADED;
delete dll;
}