From 0d69f89e6bedb5ef675610d1025eaf8b46bd3422 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 12 Jan 2023 16:35:44 -0700 Subject: Clean up editor_state's memory on teardown --- editor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 7df152a..dc0b354 100644 --- a/editor.h +++ b/editor.h @@ -46,4 +46,6 @@ void editor_draw_rows(struct editor_state* editor, struct append_buffer* buffer) void editor_draw_status_bar(struct editor_state* editor, struct append_buffer* buffer); void editor_draw_message_bar(struct editor_state* editor, struct append_buffer* buffer); +void editor_destroy(struct editor_state *editor); + #endif -- cgit v1.2.3