From 448aec5d405d70c19ab69ef4656e4cc758130715 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 2 Sep 2021 15:33:17 +0200 Subject: [PATCH] SDL now makes sure the mutex is not NULL before attempting to lock it. --- src/win/win_sdl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win/win_sdl.c b/src/win/win_sdl.c index bebad43dd..8a748fb2b 100644 --- a/src/win/win_sdl.c +++ b/src/win/win_sdl.c @@ -288,7 +288,8 @@ sdl_destroy_texture(void) void sdl_close(void) { - SDL_LockMutex(sdl_mutex); + if (sdl_mutex != NULL) + SDL_LockMutex(sdl_mutex); /* Unregister our renderer! */ video_setblit(NULL);