Don't unlink so aggressively. Bug 398083, r+sr+a=sicking
git-svn-id: svn://10.0.0.236/trunk@237073 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
511ddb65c3
commit
6c25c9877d
@ -368,20 +368,8 @@ nsXBLPrototypeBinding::Traverse(nsCycleCollectionTraversalCallback &cb) const
|
||||
void
|
||||
nsXBLPrototypeBinding::Unlink()
|
||||
{
|
||||
mBinding = nsnull;
|
||||
if (mImplementation)
|
||||
mImplementation->Unlink();
|
||||
if (mResources)
|
||||
NS_IF_RELEASE(mResources->mLoader);
|
||||
|
||||
// I'm not sure whether it would be safer to just nuke the tables or to
|
||||
// traverse them with unlinking functions... or whether we even need to
|
||||
// unlink them. I think we need to at least clean up mInsertionPointTable
|
||||
// becase it can hold strong refs to nodes in the binding document.
|
||||
delete mInsertionPointTable;
|
||||
mInsertionPointTable = nsnull;
|
||||
delete mInterfaceTable;
|
||||
mInterfaceTable = nsnull;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user