]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - thread_pthread.c
Fix a crash on Doombringer duel5.bsp where one of the lights has more than 32768...
[xonotic/darkplaces.git] / thread_pthread.c
index ec1f91776f122339271eb2d34e5b1c6ffcad3474..7bded93dec2d6426c71bc190d7b70e500dfca777 100644 (file)
@@ -34,6 +34,7 @@ void *_Thread_CreateMutex(const char *filename, int fileline)
        pthread_mutexattr_init(&attr);
        pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
        pthread_mutex_init(mutexp, &attr);
+       pthread_mutexattr_destroy(&attr);
 #else
        pthread_mutex_init(mutexp, NULL);
 #endif