Skip to content

Commit

Permalink
#373 Fixed unreleased editor - memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Jun 19, 2017
1 parent c67699a commit 94b697c
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -336,4 +336,12 @@ private String getCommandsText() {
}
return builder.toString();
}

/** Disposes current preview {@link #commands}. */
@Override
public void dispose() {
if (!commands.isDisposed()) {
EditorFactory.getInstance().releaseEditor(commands);
}
}
}

0 comments on commit 94b697c

Please sign in to comment.