Browse Source

pthread: add call to pthread_mutexattr_destroy (#14786)

limb-soup 2 months ago
parent
commit
f805bb53cf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/thread/pthread/SDL_sysmutex.c

+ 1 - 0
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;
 }