From 0b2d781ce13d03200e45f8ad959580a1a6e019f0 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Tue, 27 Sep 2016 23:32:35 -0400 Subject: [PATCH] clean up the memory for all the new metadata systems --- 4ed_file_view.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index e65c29e3..8cc76406 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -1105,6 +1105,10 @@ file_close(System_Functions *system, General_Memory *general, Editing_File *file general_memory_free(general, buffer->line_starts); } + general_memory_free(general, file->state.wrap_line_index); + general_memory_free(general, file->state.character_starts); + general_memory_free(general, file->state.line_indents); + if (file->state.undo.undo.edits){ general_memory_free(general, file->state.undo.undo.strings); general_memory_free(general, file->state.undo.undo.edits);