Skip to content
Snippets Groups Projects
Commit 960cee27 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Do not attempt to clean up SDL unless it was initialized.

Should fix js test suite on darwin.
parent 65e818a3
Branches
Tags
No related merge requests found
Pipeline #6160 failed
......@@ -294,7 +294,8 @@ void exit_sdl_con(void)
{
// Avoid calling exit(0) from an atexit() function...
ciolib_reaper = 0;
sdl_user_func_ret(SDL_USEREVENT_QUIT);
if (sdl_init_good)
sdl_user_func_ret(SDL_USEREVENT_QUIT);
}
void sdl_copytext(const char *text, size_t buflen)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment