mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 11:03:25 -08:00
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> |
||
|---|---|---|
| .. | ||
| database | ||
| format | ||
| import | ||
| printing | ||
| relation | ||
| set | ||
| card_info.cpp | ||
| card_info.h | ||
| card_info_comparator.cpp | ||
| card_info_comparator.h | ||
| card_localization.cpp | ||
| card_localization.h | ||
| game_specific_terms.h | ||
| lazy_properties_hash.cpp | ||
| lazy_properties_hash.h | ||