Parcourir la source

pthread: add call to pthread_mutexattr_destroy (#14786)

limb-soup il y a 8 mois
Parent
commit
f805bb53cf
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;
 }