Fix for 103518. Call module destructor function *after* destroying factories. submitted by Henry.Jia@sun.com, r=dp/dougt, sr=alecf

This commit is contained in:
dougt%netscape.com 2002-02-06 20:47:37 +00:00
Родитель c33ce3b107
Коммит 74e6a6c37f
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -278,15 +278,15 @@ nsGenericModule::Initialize()
void
nsGenericModule::Shutdown()
{
// Release the factory objects
mFactories.Reset();
if (mInitialized) {
mInitialized = PR_FALSE;
if (mDtor)
mDtor(this);
}
// Release the factory objects
mFactories.Reset();
}
// Create a factory object for creating instances of aClass.

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

@ -278,15 +278,15 @@ nsGenericModule::Initialize()
void
nsGenericModule::Shutdown()
{
// Release the factory objects
mFactories.Reset();
if (mInitialized) {
mInitialized = PR_FALSE;
if (mDtor)
mDtor(this);
}
// Release the factory objects
mFactories.Reset();
}
// Create a factory object for creating instances of aClass.