aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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;
}