mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
fix bug 100222. Fix crash by only releasing other objects in xpcwrappedjs dtor if xpconnect has not yet shutdown. r=dbradley sr=jst.
This commit is contained in:
parent
355745949d
commit
afa3e0b204
@ -365,8 +365,11 @@ nsXPCWrappedJS::~nsXPCWrappedJS()
|
||||
}
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mClass);
|
||||
NS_IF_RELEASE(mOuter);
|
||||
if(IsValid())
|
||||
{
|
||||
NS_IF_RELEASE(mClass);
|
||||
NS_IF_RELEASE(mOuter);
|
||||
}
|
||||
}
|
||||
|
||||
nsXPCWrappedJS*
|
||||
|
Loading…
Reference in New Issue
Block a user