From ee3878e43afe063bfb4972e287ff57f2f54edd7d Mon Sep 17 00:00:00 2001 From: Jonne Kokkonen Date: Sun, 2 Jun 2024 20:57:46 +0300 Subject: [PATCH] call SDL_Quit() on exit to prevent a crash on wayland --- SDL/main.c | 2 ++ 1 file changed, 2 insertions(+) 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");