Bug 606295 - Don't attempt to remove the edit action listener from nsPlaintextEditor's dtor; r,a=roc

This commit is contained in:
Ehsan Akhgari 2010-10-22 16:51:06 -04:00
parent 56b3ca49c7
commit 1191936178

View File

@ -109,13 +109,6 @@ nsPlaintextEditor::nsPlaintextEditor()
nsPlaintextEditor::~nsPlaintextEditor()
{
// remove the rules as an action listener. Else we get a bad ownership loop
// later on. it's ok if the rules aren't a listener; we ignore the error.
if (mRules) {
nsCOMPtr<nsIEditActionListener> mListener = do_QueryInterface(mRules);
RemoveEditActionListener(mListener);
}
// Remove event listeners. Note that if we had an HTML editor,
// it installed its own instead of these
RemoveEventListeners();