fix a floating around mutexattr object
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 May 2013 09:54:55 +0000 (09:54 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 May 2013 09:54:55 +0000 (09:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11948 d7cf8633-e32d-0410-b094-e92efae38249

thread_pthread.c

index ec1f917..7bded93 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