summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2c35958..f04f984 100644
--- a/main.c
+++ b/main.c
@@ -436,12 +436,16 @@ int main(int argc, char **argv) {
SDL_GL_SwapWindow(window);
}
+ if (ted->menu)
+ menu_close(ted, false); // free any memory used by the current menu
+
SDL_GL_DeleteContext(glctx);
SDL_DestroyWindow(window);
SDL_Quit();
buffer_free(&ted->main_buffer);
buffer_free(&ted->line_buffer);
text_font_free(ted->font);
+ text_font_free(ted->font_bold);
free(ted);
#if _WIN32
for (int i = 0; i < argc; ++i)