зеркало из https://github.com/mozilla/pjs.git
bug# 97770 fixing tree orange due to crash on unload
This commit is contained in:
Родитель
23212ed017
Коммит
c9ea0f44cf
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче