mlocker: fix dtor ordering problem

leak the mutex instead, it's a one off
This commit is contained in:
moneromooo-monero 2018-11-02 12:59:06 +00:00
parent cf27e26beb
commit 5544bb8359
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -83,8 +83,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()
{ {