aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-02 12:59:06 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-02 12:59:43 +0000
commit0cfd2ae5e774ff845abb669d6bfd63e5c838039f (patch)
tree5f588abbe866e020a2a9485fd5974ff4e0128a38
parentMerge pull request #4676 (diff)
downloadmonero-0cfd2ae5e774ff845abb669d6bfd63e5c838039f.tar.xz
mlocker: fix dtor ordering problem
leak the mutex instead, it's a one off
-rw-r--r--contrib/epee/src/mlocker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/epee/src/mlocker.cpp b/contrib/epee/src/mlocker.cpp
index 5573d591a..c3262e8f4 100644
--- a/contrib/epee/src/mlocker.cpp
+++ b/contrib/epee/src/mlocker.cpp
@@ -84,8 +84,8 @@ namespace epee
boost::mutex &mlocker::mutex()
{
- static boost::mutex vmutex;
- return vmutex;
+ static boost::mutex *vmutex = new boost::mutex();
+ return *vmutex;
}
std::map<size_t, unsigned int> &mlocker::map()
{