From 24bb2c855d0a26b24ad8e8847f16259ee21b6954 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 29 Oct 1999 13:54:58 +0000 Subject: [PATCH] removes itself from the radio group when it is destructed r=kmcclusk, bug 17418 git-svn-id: svn://10.0.0.236/trunk@52208 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsGfxRadioControlFrame.cpp | 1 + mozilla/layout/html/forms/src/nsGfxRadioControlFrame.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/mozilla/layout/forms/nsGfxRadioControlFrame.cpp b/mozilla/layout/forms/nsGfxRadioControlFrame.cpp index 34ed5f5ddce..c77e896c45c 100644 --- a/mozilla/layout/forms/nsGfxRadioControlFrame.cpp +++ b/mozilla/layout/forms/nsGfxRadioControlFrame.cpp @@ -53,6 +53,7 @@ nsGfxRadioControlFrame::nsGfxRadioControlFrame() nsGfxRadioControlFrame::~nsGfxRadioControlFrame() { + mFormFrame->RemoveRadioControlFrame((nsIFormControlFrame *)this); NS_IF_RELEASE(mRadioButtonFaceStyle); } diff --git a/mozilla/layout/html/forms/src/nsGfxRadioControlFrame.cpp b/mozilla/layout/html/forms/src/nsGfxRadioControlFrame.cpp index 34ed5f5ddce..c77e896c45c 100644 --- a/mozilla/layout/html/forms/src/nsGfxRadioControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsGfxRadioControlFrame.cpp @@ -53,6 +53,7 @@ nsGfxRadioControlFrame::nsGfxRadioControlFrame() nsGfxRadioControlFrame::~nsGfxRadioControlFrame() { + mFormFrame->RemoveRadioControlFrame((nsIFormControlFrame *)this); NS_IF_RELEASE(mRadioButtonFaceStyle); }