keymap: Allocate BApplication on the heap.

Avoids triggering an assert at program exit.
This commit is contained in:
Augustin Cavalier 2018-12-16 19:35:04 -05:00
parent 324336d1ed
commit 514bace91d

View File

@ -151,7 +151,7 @@ main(int argc, char** argv)
if (argc > optind && input == NULL)
input = argv[optind];
BApplication app("application/x-vnd.Haiku-keymap-cli");
BApplication* app = new BApplication("application/x-vnd.Haiku-keymap-cli");
Keymap keymap;
switch (mode) {