moved the RegUnRegAccessKey to the Destroy method
b=47302 r=kmcclusk git-svn-id: svn://10.0.0.236/trunk@75430 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -126,7 +126,13 @@ nsFormControlFrame::~nsFormControlFrame()
|
||||
mFormFrame->RemoveRadioControlFrame(this);
|
||||
mFormFrame = nsnull;
|
||||
}
|
||||
RegUnRegAccessKey(mPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsFormControlFrame::Destroy(nsIPresContext *aPresContext)
|
||||
{
|
||||
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
|
||||
return nsLeafFrame::Destroy(aPresContext);
|
||||
}
|
||||
|
||||
// Frames are not refcounted, no need to AddRef
|
||||
|
||||
Reference in New Issue
Block a user