mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
[Core] Fix a memory leak in NetPlayServer.cpp in function OnData().
This commit is contained in:
@ -406,7 +406,10 @@ unsigned int NetPlayServer::OnData(sf::Packet& packet, sf::SocketTCP& socket)
|
|||||||
// If the data is not from the correct player,
|
// If the data is not from the correct player,
|
||||||
// then disconnect them.
|
// then disconnect them.
|
||||||
if (m_wiimote_map[map] != player.pid)
|
if (m_wiimote_map[map] != player.pid)
|
||||||
|
{
|
||||||
|
delete[] data;
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
// relay to clients
|
// relay to clients
|
||||||
sf::Packet spac;
|
sf::Packet spac;
|
||||||
|
Reference in New Issue
Block a user