mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -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,
|
||||
// then disconnect them.
|
||||
if (m_wiimote_map[map] != player.pid)
|
||||
{
|
||||
delete[] data;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// relay to clients
|
||||
sf::Packet spac;
|
||||
|
Reference in New Issue
Block a user