Don't leak nsBoxToBlockAdaptors (bug 177807). r=varga, sr=dbaron.

git-svn-id: svn://10.0.0.236/trunk@140342 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%netscape.com
2003-03-26 06:52:20 +00:00
parent cc35115ece
commit f2968646f4
3 changed files with 12 additions and 5 deletions

View File

@@ -1093,14 +1093,12 @@ nsBoxFrame::DoLayout(nsBoxLayoutState& aState)
NS_IMETHODIMP
nsBoxFrame::Destroy(nsIPresContext* aPresContext)
{
// if we are root remove 1 from the debug count.
if (mState & NS_STATE_IS_ROOT)
GetDebugPref(aPresContext);
// unregister access key
RegUnregAccessKey(aPresContext, PR_FALSE);
SetLayoutManager(nsnull);
// clean up the container box's layout manager and child boxes
nsBoxLayoutState state(aPresContext);
nsContainerBox::Destroy(state);
return nsContainerFrame::Destroy(aPresContext);
}