mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -329,6 +329,6 @@ void ReleaseTraversalClient()
|
|||
if (!g_TraversalClient)
|
||||
return;
|
||||
|
||||
g_TraversalClient.release();
|
||||
g_MainNetHost.release();
|
||||
g_TraversalClient.reset();
|
||||
g_MainNetHost.reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue