diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-03-13 13:23:37 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-04-10 11:18:25 +0800 |
commit | 71a8c7c553ba518745c63ff646ef2677b842db5a (patch) | |
tree | 1f2915e2b2e7f637b045cdebed581effed8c492e /ui/ncurses | |
parent | 37bff93c8b0a71432613f41f2319dc073ca64619 (diff) | |
download | talos-petitboot-71a8c7c553ba518745c63ff646ef2677b842db5a.tar.gz talos-petitboot-71a8c7c553ba518745c63ff646ef2677b842db5a.zip |
ui/ncurses: unpost ncurses menu in pmenu cleanup path
We need to unpost the menu so that free_item can actually free the item.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses')
-rw-r--r-- | ui/ncurses/nc-menu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ncurses/nc-menu.c b/ui/ncurses/nc-menu.c index 745c1ff..8738c48 100644 --- a/ui/ncurses/nc-menu.c +++ b/ui/ncurses/nc-menu.c @@ -367,6 +367,7 @@ void pmenu_delete(struct pmenu *menu) assert(menu->scr.sig == pb_pmenu_sig); menu->scr.sig = pb_removed_sig; + unpost_menu(menu->ncm); free_menu(menu->ncm); delwin(menu->scr.sub_ncw); delwin(menu->scr.main_ncw); |