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
1 changed files with 2 additions and 2 deletions

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()
{ {