Bug 17431: Clean house in form and form control destructors to allow reframing r=harishd a=choffman

This commit is contained in:
pollmann@netscape.com
1999-11-04 23:16:47 +00:00
parent b841c8d685
commit 389a334ccc
18 changed files with 91 additions and 14 deletions
+6 -1
View File
@@ -71,7 +71,12 @@ nsFormControlFrame::nsFormControlFrame()
nsFormControlFrame::~nsFormControlFrame()
{
mFormFrame = nsnull;
if (mFormFrame) {
mFormFrame->RemoveFormControlFrame(*this);
// This method only removes from radio lists if we are a radio input
mFormFrame->RemoveRadioControlFrame(this);
mFormFrame = nsnull;
}
}
// Frames are not refcounted, no need to AddRef