Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

memleak fixed

  • Loading branch information...
commit c30fe9dce3890fdc17c6bbef7957bf623b9ca55d 1 parent fada029
Cyril Konopko authored
View
5 core/languageDesign/editor/source/jetbrains/mps/nodeEditor/EditorComponent.java
@@ -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;
View
1  core/languageDesign/editor/source/jetbrains/mps/nodeEditor/inspector/InspectorEditorComponent.java
@@ -46,6 +46,7 @@ private void reinitEditor() {
} else {
setEditorContext(new EditorContext(this, getEditedNode().getModel(), getOperationContext()));
}
+ refreshHighlightManager();
rebuildEditorContent();
if (getOperationContext() != null) {
notifyCreation();
Please sign in to comment.
Something went wrong with that request. Please try again.