diff options
author | Robin Lindén <dev@robinlinden.eu> | 2019-09-18 23:26:13 +0200 |
---|---|---|
committer | Robin Lindén <dev@robinlinden.eu> | 2019-09-18 23:26:13 +0200 |
commit | 1f89a5718038288173145a96c68d4d7ab15d8a8a (patch) | |
tree | 1159f494065c1e307492bdf8348d4ad46b305663 /toxcore | |
parent | ca370df651f780437bf3bcf61e6f2c8a7d532ec4 (diff) |
Fix pthread_mutex_destroy getting too many arguments
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/mono_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/mono_time.c b/toxcore/mono_time.c index 6325ed3d..fd29dff5 100644 --- a/toxcore/mono_time.c +++ b/toxcore/mono_time.c | |||
@@ -139,7 +139,7 @@ Mono_Time *mono_time_new(void) | |||
139 | void mono_time_free(Mono_Time *mono_time) | 139 | void mono_time_free(Mono_Time *mono_time) |
140 | { | 140 | { |
141 | #ifdef OS_WIN32 | 141 | #ifdef OS_WIN32 |
142 | pthread_mutex_destroy(&mono_time->last_clock_lock, nullptr); | 142 | pthread_mutex_destroy(&mono_time->last_clock_lock); |
143 | #endif | 143 | #endif |
144 | pthread_rwlock_destroy(mono_time->time_update_lock); | 144 | pthread_rwlock_destroy(mono_time->time_update_lock); |
145 | free(mono_time->time_update_lock); | 145 | free(mono_time->time_update_lock); |