main: EventManager should be destroyed after the Buffers

This commit is contained in:
Maxime Coste 2012-08-29 00:11:16 +02:00
parent 2d82e2a2c6
commit 00d32fd392

View File

@ -26,6 +26,7 @@
using namespace Kakoune;
using namespace std::placeholders;
namespace Kakoune
{
@ -471,6 +472,7 @@ void manage_next_keypress(Context& context)
int main(int argc, char* argv[])
{
EventManager event_manager;
GlobalOptionManager option_manager;
GlobalHookManager hook_manager;
ShellManager shell_manager;
@ -479,7 +481,6 @@ int main(int argc, char* argv[])
RegisterManager register_manager;
HighlighterRegistry highlighter_registry;
FilterRegistry filter_registry;
EventManager event_manager;
run_unit_tests();