fixed ThreadSanitizer warning about unlocking a non-locked mutex (nw)

This commit is contained in:
Oliver Stöneberg 2014-12-31 10:23:22 +01:00
parent e6f78d5ed2
commit a36d8f2fc0

View File

@ -167,7 +167,7 @@ void osd_lock_free(osd_lock *lock)
{
hidden_mutex_t *mutex = (hidden_mutex_t *) lock;
pthread_mutex_unlock(&mutex->id);
//pthread_mutex_unlock(&mutex->id);
pthread_mutex_destroy(&mutex->id);
free(mutex);
}