From 1f221a73cf290ff509ef6c066ff692bb48f8625e Mon Sep 17 00:00:00 2001 From: adnano Date: Thu, 2 May 2024 18:45:49 -0400 Subject: Fix destruction of pool buffers --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index be21e33..7eae947 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,7 @@ #define _POSIX_C_SOURCE 200809L +#include + #include "menu.h" #include "wayland.h" @@ -20,5 +22,7 @@ int main(int argc, char *argv[]) { if (!menu->passwd) { read_items(menu); } - return menu_run(menu); + int status = menu_run(menu); + menu_destroy(menu); + return status; } -- cgit v1.2.3