aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2024-05-02 18:45:49 -0400
committeradnano <me@adnano.co>2024-05-02 18:45:49 -0400
commit1f221a73cf290ff509ef6c066ff692bb48f8625e (patch)
treeabdd724cff64843e2dd5de22934d8d2d68ac5e37 /main.c
parent6284eea24b44d05260f96fe842fa9dd752185942 (diff)
downloadwmenu-1f221a73cf290ff509ef6c066ff692bb48f8625e.tar.gz
Fix destruction of pool buffers
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
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 <string.h>
+
#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;
}