diff --git a/SDL/main.c b/SDL/main.c index 173e42b..13e25eb 100644 --- a/SDL/main.c +++ b/SDL/main.c @@ -1052,6 +1052,8 @@ int main(int argc, char **argv) #endif SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO); + atexit(SDL_Quit); + if ((console_supported = CON_start(completer))) { CON_set_repeat_empty(true); CON_printf("SameBoy v" GB_VERSION "\n");