[TextEditor] Free some memory.