Cockatrice/libcockatrice_card/libcockatrice/card
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
..
database [CardDB] Clear CardInfo relations before deferred deletion (#7615) 2026-10-24 10:28:24 +02:00
format [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
import [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
printing [CardDB] Stream card properties from blobs (#7608) 2026-10-24 00:17:31 +02:00
relation [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
set [CardDB] Avoid copying printing maps and property strings (#7605) 2026-10-23 11:58:58 +02:00
card_info.cpp [CardDB] Clear CardInfo relations before deferred deletion (#7615) 2026-10-24 10:28:24 +02:00
card_info.h [CardDB] Clear CardInfo relations before deferred deletion (#7615) 2026-10-24 10:28:24 +02:00
card_info_comparator.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_info_comparator.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_localization.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
card_localization.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
game_specific_terms.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
lazy_properties_hash.cpp [CardDB] Stream card properties from blobs (#7608) 2026-10-24 00:17:31 +02:00
lazy_properties_hash.h [CardDB] Stream card properties from blobs (#7608) 2026-10-24 00:17:31 +02:00