diff --git a/src/thread/pthread/SDL_sysmutex.c b/src/thread/pthread/SDL_sysmutex.c index 3e04d2150c..7e03342322 100644 --- a/src/thread/pthread/SDL_sysmutex.c +++ b/src/thread/pthread/SDL_sysmutex.c @@ -46,6 +46,7 @@ SDL_Mutex *SDL_CreateMutex(void) SDL_free(mutex); mutex = NULL; } + pthread_mutexattr_destroy(&attr); } return mutex; }