aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-16 11:06:09 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-16 11:06:09 +0200
commit42dbb3aa1b99976c3b04fae184139c1148718287 (patch)
tree247136d255b52f882342e9961463077c733f9d0e /contrib/epee
parentMerge pull request #4784 (diff)
parentmlocker: fix dtor ordering problem (diff)
downloadmonero-42dbb3aa1b99976c3b04fae184139c1148718287.tar.xz
Merge pull request #4785
0cfd2ae5 mlocker: fix dtor ordering problem (moneromooo-monero)
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 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()
{