1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:37:34 +00:00

LibGUI: Make Application::exec() return instead of calling exit()

We were calling exit() here because we didn't want to deal with object
teardown in the long-long-ago before Core::Object was ref-counted.
This commit is contained in:
Andreas Kling 2020-07-01 20:49:00 +02:00
parent 8661af9b72
commit c6193af269

View file

@ -75,11 +75,7 @@ Application::~Application()
int Application::exec() int Application::exec()
{ {
int exit_code = m_event_loop->exec(); return m_event_loop->exec();
// NOTE: Maybe it would be cool to return instead of exit()?
// This would require cleaning up all the Core::Objects on the heap.
exit(exit_code);
return exit_code;
} }
void Application::quit(int exit_code) void Application::quit(int exit_code)