mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
better null check (#3036)
This commit is contained in:
parent
55029b6b68
commit
261d3ac591
3 changed files with 29 additions and 11 deletions
|
|
@ -434,12 +434,14 @@ void TabGame::emitUserEvent() {
|
|||
|
||||
TabGame::~TabGame()
|
||||
{
|
||||
if(replay)
|
||||
delete replay;
|
||||
delete replay;
|
||||
|
||||
QMapIterator<int, Player *> i(players);
|
||||
while (i.hasNext())
|
||||
{
|
||||
delete i.next().value();
|
||||
}
|
||||
|
||||
players.clear();
|
||||
|
||||
emit gameClosing(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue