TraversalClient: Fix memory leaks in ReleaseTraversalClient()
release() relinquishes ownership of a pointer, it doesn't actually free it.
This commit is contained in:
parent
efd318df64
commit
5859914da5
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue