AmendHub

Download:

jcs

/

wallops

/

amendments

/

56

main: Close focusables at exit properly


jcs made amendment 56 3 months ago
--- main.c Mon Sep 25 17:23:14 2023 +++ main.c Mon Jan 1 10:41:33 2024 @@ -464,13 +464,11 @@ update_menu(void) void handle_exit(void) { - short n; - while (nfocusables > 0) { - if (focusables[n]->atexit) - focusables[n]->atexit(focusables[n]); + if (focusables[0]->atexit) + focusables[0]->atexit(focusables[0]); else - focusable_close(focusables[n]); + focusable_close(focusables[0]); } while (!SLIST_EMPTY(&irc_connections_list))