mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-08 11:24:46 -08:00
fixed one server memory leak
This commit is contained in:
@@ -33,11 +33,6 @@ void Server_Room::addClient(Server_ProtocolHandler *client)
|
||||
{
|
||||
sendRoomEvent(new Event_JoinRoom(id, new ServerInfo_User(client->getUserInfo())));
|
||||
append(client);
|
||||
|
||||
QList<ServerInfo_User *> eventUserList;
|
||||
for (int i = 0; i < size(); ++i)
|
||||
eventUserList.append(new ServerInfo_User(at(i)->getUserInfo()));
|
||||
|
||||
emit roomInfoChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user