TraversalClient: Fix memory leaks in ReleaseTraversalClient()

release() relinquishes ownership of a pointer, it doesn't actually free
it.
This commit is contained in:
Lioncash 2017-07-22 18:19:22 -04:00
parent efd318df64
commit 5859914da5

View File

@ -329,6 +329,6 @@ void ReleaseTraversalClient()
if (!g_TraversalClient)
return;
g_TraversalClient.release();
g_MainNetHost.release();
g_TraversalClient.reset();
g_MainNetHost.reset();
}