mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Restore the original warning, I guess.
Took 3 minutes
This commit is contained in:
parent
3585801150
commit
bb0fe0144e
1 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,9 @@ GameScene::~GameScene()
|
||||||
{
|
{
|
||||||
delete animationTimer;
|
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) {
|
for (const auto &zoneView : zoneViews) {
|
||||||
zoneView->deleteLater();
|
zoneView->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue