bug# 97770 fixing tree orange due to crash on unload

This commit is contained in:
dp%netscape.com 2001-08-31 17:45:51 +00:00
Родитель 23212ed017
Коммит c9ea0f44cf
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -1954,9 +1954,11 @@ nsComponentManagerImpl::UnloadLibraries(nsIServiceManager *serviceMgr, PRInt32 a
/* iterate over all known loaders and ask them to autoregister. */ /* iterate over all known loaders and ask them to autoregister. */
// Skip mNativeComponentLoader // Skip mNativeComponentLoader
for (int i=NS_COMPONENT_TYPE_NATIVE + 1; i<mNLoaderData; i++) { for (int i=NS_COMPONENT_TYPE_NATIVE + 1; i<mNLoaderData; i++) {
rv = mLoaderData[i].loader->UnloadAll(aWhen); if (mLoaderData[i].loader) {
if (NS_FAILED(rv)) rv = mLoaderData[i].loader->UnloadAll(aWhen);
break; if (NS_FAILED(rv))
break;
}
} }
// UnloadAll the native loader // UnloadAll the native loader