From 379ceeeca0a774caee54196c6eef110ddc3f765a Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Sun, 12 Apr 2015 17:39:04 +0200 Subject: [PATCH] Zone crash fix Related to #808 When closing the app/game tab with a zone revealed the client will crash. This was due to the zones not being deleted. --- cockatrice/src/tab_game.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cockatrice/src/tab_game.cpp b/cockatrice/src/tab_game.cpp index 8ee332af..d6838d34 100644 --- a/cockatrice/src/tab_game.cpp +++ b/cockatrice/src/tab_game.cpp @@ -649,6 +649,7 @@ void TabGame::actLeaveGame() if (!replay) sendGameCommand(Command_LeaveGame()); } + scene->clearViews(); deleteLater(); }