fix compiling on MacOS

This commit is contained in:
milek
2019-03-25 20:17:27 +00:00
parent 1fba251baf
commit 810ea151e2
3 changed files with 12 additions and 2 deletions

View File

@@ -34,9 +34,9 @@ int main( int argc, char *argv[] )
auto result { Application.init( argc, argv ) };
if( result == 0 ) {
result = Application.run();
Application.exit();
}
Application.exit();
std::_Exit(0); // skip destructors, there are ordering errors which causes segfaults
std::_Exit(0); // skip destructors, there are ordering errors which causes segfaults
return result;
}
catch( std::bad_alloc const &Error )