diff --git a/cockatrice/src/game/game_scene.cpp b/cockatrice/src/game/game_scene.cpp index e85ff6663..4316e67bf 100644 --- a/cockatrice/src/game/game_scene.cpp +++ b/cockatrice/src/game/game_scene.cpp @@ -41,7 +41,9 @@ GameScene::~GameScene() { delete animationTimer; - // Zone views are deleted asynchronously. + // DO NOT call clearViews() here + // clearViews calls close() on the zoneViews, which sends signals; sending signals in destructors leads to segfaults + // deleteLater() deletes the zoneView without allowing it to send signals for (const auto &zoneView : zoneViews) { zoneView->deleteLater(); }