[PATCH] properly remove menu entry

Aleksey Kuleshov rndfax at yandex.ru
Wed Aug 17 02:04:31 PDT 2016


Signed-off-by: Aleksey Kuleshov <rndfax at yandex.ru>
---
 common/boot.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/boot.c b/common/boot.c
index 52e181d..5f2e5cf 100644
--- a/common/boot.c
+++ b/common/boot.c
@@ -322,6 +322,7 @@ void bootsources_menu(struct bootentries *bootentries, int timeout)
 
 	menu_show(bootentries->menu);
 
+	menu_remove_entry(bootentries->menu, back_entry);
 	free(back_entry);
 }
 
-- 
2.8.0.rc3




More information about the barebox mailing list