summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-22 19:17:19 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-22 19:17:19 -0500
commitf2edda528a3babe16d9da48580bdcb696e5fa664 (patch)
tree8e54df107de0bc3b87d147bb973e51eef76b769b /menu.c
parent0f0a03b518ff6dbb61814896e5efc9b5878904e4 (diff)
fixed memory leaks
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index af47393..7e1db53 100644
--- a/menu.c
+++ b/menu.c
@@ -15,7 +15,7 @@ static void menu_close(Ted *ted, bool restore_prev_active_buffer) {
ted->menu = MENU_NONE;
if (restore_prev_active_buffer) ted->active_buffer = ted->prev_active_buffer;
ted->prev_active_buffer = NULL;
-
+ file_selector_free(&ted->file_selector);
buffer_clear(&ted->line_buffer);
}