Explorar el Código

pthread: add call to pthread_mutexattr_destroy (#14786)

limb-soup hace 4 meses
padre
commit
f805bb53cf
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
 }