Explorar o código

pthread: add call to pthread_mutexattr_destroy (#14786)

limb-soup hai 4 meses
pai
achega
f805bb53cf
Modificáronse 1 ficheiros con 1 adicións e 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;
 }