memory leak
This commit is contained in:
parent
78c1851c52
commit
035d143615
2 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,11 @@ Server_Player::Server_Player(Server_Game *_game, int _playerId, const QString &_
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Server_Player::~Server_Player()
|
||||||
|
{
|
||||||
|
delete deck;
|
||||||
|
}
|
||||||
|
|
||||||
int Server_Player::newCardId()
|
int Server_Player::newCardId()
|
||||||
{
|
{
|
||||||
return nextCardId++;
|
return nextCardId++;
|
||||||
|
|
|
@ -32,6 +32,7 @@ private:
|
||||||
bool conceded;
|
bool conceded;
|
||||||
public:
|
public:
|
||||||
Server_Player(Server_Game *_game, int _playerId, const QString &_playerName, bool _spectator, Server_ProtocolHandler *_handler);
|
Server_Player(Server_Game *_game, int _playerId, const QString &_playerName, bool _spectator, Server_ProtocolHandler *_handler);
|
||||||
|
~Server_Player();
|
||||||
void setProtocolHandler(Server_ProtocolHandler *_handler) { handler = _handler; }
|
void setProtocolHandler(Server_ProtocolHandler *_handler) { handler = _handler; }
|
||||||
|
|
||||||
void setPlayerId(int _id) { playerId = _id; }
|
void setPlayerId(int _id) { playerId = _id; }
|
||||||
|
|
Loading…
Reference in a new issue