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
1 changed files with 2 additions and 2 deletions

View File

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