From c3d6f67c7c49993fa1e1e13fdcbb7269ce7d41f9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 25 Jan 2013 13:07:01 -0500 Subject: [PATCH] Fix release() in StdMutex.h Originally fixed here: https://code.google.com/p/dolphin-emu/source/detail?spec=svn74a5ad542b44a18751acc19e4d1229d640cc4c0f&r=4f4aa4860df98f401384f6e598cb649b13882e79 --- Common/StdMutex.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Common/StdMutex.h b/Common/StdMutex.h index b71d0dccbe..27aa7f5c5d 100644 --- a/Common/StdMutex.h +++ b/Common/StdMutex.h @@ -318,9 +318,12 @@ public: mutex_type* release() { - return mutex(); + mutex_type* const ret = mutex(); + pm = NULL; owns = false; + + return ret; } bool owns_lock() const