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:
jband%netscape.com 2001-09-20 00:51:38 +00:00
parent 355745949d
commit afa3e0b204

View File

@ -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*