mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01:00
Merge pull request #2873 from lioncash/netleaks
NetPlay: Fix a memory leak
This commit is contained in:
commit
49ea15b950
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user