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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user