aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
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>2019-02-17 10:52:46 +0000
commit5544bb8359bf4c6be18e9623d97cb5357c9ddffb (patch)
treecf9a84715864ff1c46c1e8c23304f5a1d4e714b2 /contrib/epee
parentMerge pull request #5149 (diff)
downloadmonero-5544bb8359bf4c6be18e9623d97cb5357c9ddffb.tar.xz
mlocker: fix dtor ordering problem
leak the mutex instead, it's a one off
Diffstat (limited to 'contrib/epee')
-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 2d6e64e7a..4c48cbb58 100644
--- a/contrib/epee/src/mlocker.cpp
+++ b/contrib/epee/src/mlocker.cpp
@@ -83,8 +83,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()
{