mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 07:58:52 +00:00
Ensure DNSResolver destructor runs on exit
Plugs a noisy but benign memory leak
This commit is contained in:
parent
0c6ea4f8a6
commit
464afd4d2d
@ -307,12 +307,8 @@ DNSResolver& DNSResolver::instance()
|
|||||||
{
|
{
|
||||||
boost::lock_guard<boost::mutex> lock(instance_lock);
|
boost::lock_guard<boost::mutex> lock(instance_lock);
|
||||||
|
|
||||||
static DNSResolver* staticInstance = NULL;
|
static DNSResolver staticInstance;
|
||||||
if (staticInstance == NULL)
|
return staticInstance;
|
||||||
{
|
|
||||||
staticInstance = new DNSResolver();
|
|
||||||
}
|
|
||||||
return *staticInstance;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DNSResolver DNSResolver::create()
|
DNSResolver DNSResolver::create()
|
||||||
|
Loading…
Reference in New Issue
Block a user