diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index b9b75098..0cab3716 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -29,7 +29,7 @@ #include "pic.h" #include "timer.h" #include "setup.h" - +#include "debug.h" //#define DISABLE_JOYSTICK @@ -567,5 +567,9 @@ int main(int argc, char* argv[]) { LOG_ERROR("Exit to error: %s",error); fgetc(stdin); } +#if C_DEBUG + DEBUG_ShutDown(); +#endif + return 0; };