From 78a82dcc5e410d651aeaad281b206d4e1b7703a9 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 13 Aug 2023 23:37:42 -0700 Subject: main: free setups and settings in shutdown more cleaning up stuff on exit --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.c b/src/main.c index 7077129..d6985a2 100644 --- a/src/main.c +++ b/src/main.c @@ -437,6 +437,14 @@ int main(int argc, const char *argv[]) til_module_context_free(rototiller.module_context); til_stream_free(rototiller.stream); til_fb_free(rototiller.fb); + + { /* free setup (move to function? and disambiguate from til_setup_t w/rename? TODO) */ + free((void *)setup.title); + til_setup_free(setup.video_setup); + til_settings_free(setup.video_settings); + til_setup_free(setup.module_setup); + til_settings_free(setup.module_settings); + } } til_shutdown(); -- cgit v1.2.3