From 68c0ec281b7e935e851fd1bd8447cf82f301e52e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 18 Aug 2015 08:09:17 -0400 Subject: [PATCH] NetPlayClient: Correctly free packet data --- Source/Core/Core/NetPlayClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/NetPlayClient.cpp b/Source/Core/Core/NetPlayClient.cpp index d499e6b90e..69dcfc4ba8 100644 --- a/Source/Core/Core/NetPlayClient.cpp +++ b/Source/Core/Core/NetPlayClient.cpp @@ -188,6 +188,7 @@ bool NetPlayClient::Connect() if (enet_host_service(m_client, &netEvent, 5000) > 0 && netEvent.type == ENET_EVENT_TYPE_RECEIVE) { rpac.append(netEvent.packet->data, netEvent.packet->dataLength); + enet_packet_destroy(netEvent.packet); } else {