From 5859914da519130ada53e584b8da96bad808c320 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 22 Jul 2017 18:19:22 -0400 Subject: [PATCH] TraversalClient: Fix memory leaks in ReleaseTraversalClient() release() relinquishes ownership of a pointer, it doesn't actually free it. --- Source/Core/Common/TraversalClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/TraversalClient.cpp b/Source/Core/Common/TraversalClient.cpp index 67b4676769..a2cd9b2647 100644 --- a/Source/Core/Common/TraversalClient.cpp +++ b/Source/Core/Common/TraversalClient.cpp @@ -329,6 +329,6 @@ void ReleaseTraversalClient() if (!g_TraversalClient) return; - g_TraversalClient.release(); - g_MainNetHost.release(); + g_TraversalClient.reset(); + g_MainNetHost.reset(); }