InsertOverwritePanel: don't leak editor

This commit is contained in:
peter
2015-02-18 16:18:48 +01:00
parent 7447215884
commit ba2fc6d19b
@@ -102,6 +102,7 @@ public class InsertOverwritePanel extends EditorBasedWidget implements StatusBar
private void switchEditor() {
if (myOldEditor != null) {
myOldEditor.removePropertyChangeListener(this);
myOldEditor = null;
}
EditorEx editor = (EditorEx)getEditor();
if (editor != null) {