Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
035d1436
Commit
035d1436
authored
Dec 02, 2009
by
Max-Wilhelm Bruker
Browse files
memory leak
parent
78c1851c
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/server_player.cpp
View file @
035d1436
...
@@ -14,6 +14,11 @@ Server_Player::Server_Player(Server_Game *_game, int _playerId, const QString &_
...
@@ -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
++
;
...
...
common/server_player.h
View file @
035d1436
...
@@ -32,6 +32,7 @@ private:
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment