Cockatrice/libcockatrice_card/libcockatrice/card/database
BruebachL 4028606bd9
[CardDB] Clear CardInfo relations before deferred deletion (#7615)
removeCard() and swapInDatabaseData() schedule CardRelation deletion with deleteLater(), but the owning CardInfo could outlive them through an external shared pointer and kept returning the freed pointers from getAllRelatedCards(). Add CardInfo::clearDirectRelations() and call it after scheduling deletion so the UI can no longer dereference dangling relations.

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-10-24 10:28:24 +02:00
..
parser [CardDB] Stream card properties from blobs (#7608) 2026-10-24 00:17:31 +02:00
card_database.cpp [CardDB] Clear CardInfo relations before deferred deletion (#7615) 2026-10-24 10:28:24 +02:00
card_database.h [CardDB] Keep parse-time set filtering and bust the cache on enablement changes (#7448) 2026-10-09 06:09:18 +02:00
card_database_cache.cpp [CardDB] Stream card properties from blobs (#7608) 2026-10-24 00:17:31 +02:00
card_database_cache.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_database_data.h [Card Database] Improve loading times through binary cache (#7051) 2026-07-27 23:12:53 +02:00
card_database_loader.cpp [CardDB] Reload after the first run enables all sets without freezing startup (#7470) 2026-10-13 06:29:16 +02:00
card_database_loader.h [CardDB] Reload after the first run enables all sets without freezing startup (#7470) 2026-10-13 06:29:16 +02:00
card_database_manager.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_database_manager.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_database_querier.cpp [CardDB] Avoid copying printing maps and property strings (#7605) 2026-10-23 11:58:58 +02:00
card_database_querier.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00