From bb0fe0144e3851119d9bbcf2ea5e1de487e2daab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Fri, 26 Sep 2025 21:12:08 +0200 Subject: [PATCH] Restore the original warning, I guess. Took 3 minutes --- cockatrice/src/game/game_scene.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }