diff --git a/tlib/src/start.cpp b/tlib/src/start.cpp index 758793a6..4a73e0f0 100644 --- a/tlib/src/start.cpp +++ b/tlib/src/start.cpp @@ -25,9 +25,10 @@ void _start(int argc, char* argv[]){ // Execute the main function auto code = main(argc, argv); + // Call the global destructors, if any _fini(); - // Call the global destructors, if any + // Call the shared library destructors, if any __cxa_finalize(nullptr); // Kill the process with the correct exit code