Fix for 103518. Call module destructor function *after* destroying factories. submitted by Henry.Jia@sun.com, r=dp/dougt, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113819 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1569da98b1
commit
408ba7a40c
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user