ui/ncurses: Fix use-after-free when exiting boot option editor
authorJeremy Kerr <jk@ozlabs.org>
Tue, 19 Nov 2013 06:39:41 +0000 (17:39 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 22 Nov 2013 05:13:15 +0000 (13:13 +0800)
commit7f8fdbcd432097b035394ee5b71dbfde728c36f0
tree26c89319c733dbb4e14fc109e9d6a7c016dbe396
parentc4b4ebc4c61b7f374582c621aec846aba3795954
ui/ncurses: Fix use-after-free when exiting boot option editor

After we've called on_exit, we can no longer use the boot editor. This
change moves individual button callbacks into process_key, which returns
to the main loop.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-boot-editor.c