os/threading: fix assert in debug build

This commit is contained in:
Weijie Wang 2024-01-25 16:07:05 +08:00 committed by Simon Zeni
parent 112dc3197f
commit e1f02b4629

View file

@ -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;