Commit 596e7be8 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

fixed one server memory leak

parent 2c50cce6
...@@ -33,11 +33,6 @@ void Server_Room::addClient(Server_ProtocolHandler *client) ...@@ -33,11 +33,6 @@ void Server_Room::addClient(Server_ProtocolHandler *client)
{ {
sendRoomEvent(new Event_JoinRoom(id, new ServerInfo_User(client->getUserInfo()))); sendRoomEvent(new Event_JoinRoom(id, new ServerInfo_User(client->getUserInfo())));
append(client); append(client);
QList<ServerInfo_User *> eventUserList;
for (int i = 0; i < size(); ++i)
eventUserList.append(new ServerInfo_User(at(i)->getUserInfo()));
emit roomInfoChanged(); emit roomInfoChanged();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment