mlocker: fix dtor ordering problem
leak the mutex instead, it's a one off
This commit is contained in:
parent
93c2e6f521
commit
b91d510669
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue