summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-12 16:35:44 -0700
committercflip <cflip@cflip.net>2023-01-12 16:35:50 -0700
commit0d69f89e6bedb5ef675610d1025eaf8b46bd3422 (patch)
tree2acc5f9e3325db387ce7c0093c2ec199225a285a /main.c
parent7964e549ff3889455ce1d1a87b47ab1b0adb722c (diff)
Clean up editor_state's memory on teardown
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index e3a9399..205d580 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,3 @@
-#include "input.h"
#include "file.h"
#include "editor.h"
#include "window.h"
@@ -23,5 +22,7 @@ int main(int argc, char** argv)
}
window_destroy();
+ editor_destroy(&editor);
+
return 0;
}