mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-12 23:48:35 +02:00
NetPlayClient: Correctly free packet data
This commit is contained in:
parent
4baaa3755e
commit
68c0ec281b
@ -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…
Reference in New Issue
Block a user