A softer landing on a failed initialization.  It checks for a null
before deallocating.  This does not affect the success path.

This was a patch, and I reviewed it:  (r=rayw)
This commit is contained in:
rayw%netscape.com 2000-08-18 20:54:04 +00:00
Родитель b50736886e
Коммит 780a67357a
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -983,7 +983,9 @@ nsNativeComponentLoader::UnloadAll(PRInt32 aWhen)
callData.when = aWhen;
// Cycle through the dlls checking to see if they want to be unloaded
mDllStore->Enumerate(nsFreeLibraryEnum, &callData);
if (mDllStore) {
mDllStore->Enumerate(nsFreeLibraryEnum, &callData);
}
return NS_OK;
}