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:
parent
8661af9b72
commit
c6193af269
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue