diff --git a/src/xrt/auxiliary/os/os_threading.h b/src/xrt/auxiliary/os/os_threading.h index 471105534..e36cc1289 100644 --- a/src/xrt/auxiliary/os/os_threading.h +++ b/src/xrt/auxiliary/os/os_threading.h @@ -167,7 +167,7 @@ os_mutex_recursive_destroy(struct os_mutex *om) assert(om->initialized); assert(om->recursive); - os_mutex_destroy(om); + pthread_mutex_destroy(&om->mutex); #ifndef NDEBUG om->initialized = false;