diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-13 23:37:42 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-13 23:37:42 -0700 |
commit | 78a82dcc5e410d651aeaad281b206d4e1b7703a9 (patch) | |
tree | 980d92c9ce86efeb27092a9e1b0b2108d47d921d | |
parent | 5f7d8416c6616b452a02ff5d85e59d923af66e8f (diff) |
main: free setups and settings in shutdown
more cleaning up stuff on exit
-rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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(); |