зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c33ce3b107
Коммит
74e6a6c37f
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче