From: divverent Date: Mon, 6 May 2013 09:54:55 +0000 (+0000) Subject: fix a floating around mutexattr object X-Git-Tag: xonotic-v0.7.0~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f3c02879825da526d5bd8e1baa7b42e0b7a38bcf;p=xonotic%2Fdarkplaces.git fix a floating around mutexattr object git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11948 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6ba1092006dc6f5b5a3197b0a0013100d7cea558 --- 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