mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
InsertOverwritePanel: don't leak editor
This commit is contained in:
+1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user