mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
mlocker: fix dtor ordering problem
leak the mutex instead, it's a one off
This commit is contained in:
parent
cf27e26beb
commit
5544bb8359
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue