summaryrefslogtreecommitdiff
path: root/thirdparty/embree/common/sys/mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/embree/common/sys/mutex.cpp')
-rw-r--r--thirdparty/embree/common/sys/mutex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/embree/common/sys/mutex.cpp b/thirdparty/embree/common/sys/mutex.cpp
index 789feaf2d8..8212deaa49 100644
--- a/thirdparty/embree/common/sys/mutex.cpp
+++ b/thirdparty/embree/common/sys/mutex.cpp
@@ -36,6 +36,7 @@ namespace embree
MAYBE_UNUSED bool ok = pthread_mutex_destroy((pthread_mutex_t*)mutex) == 0;
assert(ok);
delete (pthread_mutex_t*)mutex;
+ mutex = nullptr;
}
void MutexSys::lock()