summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-13 23:37:42 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-13 23:37:42 -0700
commit78a82dcc5e410d651aeaad281b206d4e1b7703a9 (patch)
tree980d92c9ce86efeb27092a9e1b0b2108d47d921d /src
parent5f7d8416c6616b452a02ff5d85e59d923af66e8f (diff)
main: free setups and settings in shutdown
more cleaning up stuff on exit
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
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();
© All Rights Reserved