Bug 17431: Clean house in form and form control destructors to allow reframing r=harishd a=choffman
git-svn-id: svn://10.0.0.236/trunk@52822 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user