From 49da23fa1637e8fd2f94dd83e612082baeb140f1 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 11 Jun 2021 11:02:41 +0800 Subject: ... --- operating-system-experiment/Mutex.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'operating-system-experiment/Mutex.cpp') diff --git a/operating-system-experiment/Mutex.cpp b/operating-system-experiment/Mutex.cpp index 4d360f1..8acfdc5 100644 --- a/operating-system-experiment/Mutex.cpp +++ b/operating-system-experiment/Mutex.cpp @@ -86,6 +86,7 @@ void Mutex::Destroy() { if (handle_ != nullptr) { auto c = CloseHandle(handle_); assert(c); + handle_ = nullptr; } #else if (mutex_ != nullptr) { -- cgit v1.2.3