Merge pull request #4785

0cfd2ae5 mlocker: fix dtor ordering problem (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-11-16 11:06:09 +02:00
commit 42dbb3aa1b
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -84,8 +84,8 @@ namespace epee
boost::mutex &mlocker::mutex() boost::mutex &mlocker::mutex()
{ {
static boost::mutex vmutex; static boost::mutex *vmutex = new boost::mutex();
return vmutex; return *vmutex;
} }
std::map<size_t, unsigned int> &mlocker::map() std::map<size_t, unsigned int> &mlocker::map()
{ {