X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=thread_pthread.c;h=7bded93dec2d6426c71bc190d7b70e500dfca777;hb=a51a70c2254b27a68e5fe74cc5985b02dc36e1e9;hp=ec1f91776f122339271eb2d34e5b1c6ffcad3474;hpb=6765d73ceb93553eef65c72f5f80f71f13771d12;p=xonotic%2Fdarkplaces.git diff --git a/thread_pthread.c b/thread_pthread.c index ec1f9177..7bded93d 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -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