Add another shouldBeFreed debugging call to catch outer windows better for cycle collector debugging. b=385549 r+sr=jst

This commit is contained in:
dbaron@dbaron.org 2007-06-29 20:01:50 -07:00
parent 9b3e00551c
commit 6b6c3b1359

View File

@ -1788,6 +1788,9 @@ nsGlobalWindow::SetDocShell(nsIDocShell* aDocShell)
}
}
mContext = nsnull; // we nuked it above also
#ifdef DEBUG
nsCycleCollector_DEBUG_shouldBeFreed(NS_STATIC_CAST(nsIScriptGlobalObject*, this));
#endif
}
mDocShell = aDocShell; // Weak Reference