summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorRobin Lindén <dev@robinlinden.eu>2019-09-18 23:26:13 +0200
committerRobin Lindén <dev@robinlinden.eu>2019-09-18 23:26:13 +0200
commit1f89a5718038288173145a96c68d4d7ab15d8a8a (patch)
tree1159f494065c1e307492bdf8348d4ad46b305663 /toxcore
parentca370df651f780437bf3bcf61e6f2c8a7d532ec4 (diff)
Fix pthread_mutex_destroy getting too many arguments
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/mono_time.c2
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)
139void mono_time_free(Mono_Time *mono_time) 139void 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);