mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -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> |
||
|---|---|---|
| .. | ||
| data | ||
| carddatabase_test.cpp | ||
| CMakeLists.txt | ||
| filter_string_test.cpp | ||
| load_benchmark.cpp | ||
| mocks.cpp | ||
| mocks.h | ||
| test_card_database_path_provider.h | ||