mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 606295 - Don't attempt to remove the edit action listener from nsPlaintextEditor's dtor; r,a=roc
This commit is contained in:
parent
56b3ca49c7
commit
1191936178
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user