Permalink
Browse files

memleak fixed

  • Loading branch information...
1 parent fada029 commit c30fe9dce3890fdc17c6bbef7957bf623b9ca55d Cyril Konopko committed Dec 21, 2010
@@ -1237,6 +1237,11 @@ public NodeHighlightManager getHighlightManager() {
return myHighlightManager;
}
+ protected void refreshHighlightManager() {
+ myHighlightManager.dispose();
+ myHighlightManager = new NodeHighlightManager(this);
+ }
+
public CellActionType getActionType(KeyEvent keyEvent, EditorContext editorContext) {
if (keyEvent.getKeyCode() == KeyEvent.VK_LEFT && noKeysDown(keyEvent)) {
return CellActionType.LEFT;
@@ -46,6 +46,7 @@ private void reinitEditor() {
} else {
setEditorContext(new EditorContext(this, getEditedNode().getModel(), getOperationContext()));
}
+ refreshHighlightManager();
rebuildEditorContent();
if (getOperationContext() != null) {
notifyCreation();

0 comments on commit c30fe9d

Please sign in to comment.