Cockatrice/tests/carddatabase
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
..
data Fix multi-word type matching in card filters (#6060) 2025-08-24 12:37:25 -04:00
carddatabase_test.cpp [CardDB] Clear CardInfo relations before deferred deletion (#7615) 2026-10-24 10:28:24 +02:00
CMakeLists.txt [Tests] Register each test case with CTest instead of each test binary (#7399) 2026-10-11 14:50:09 +02:00
filter_string_test.cpp [Filter] Allow spaces around the colon in search queries (#7529) 2026-10-20 21:20:10 +02:00
load_benchmark.cpp [CardDB] Stream card properties from blobs (#7608) 2026-10-24 00:17:31 +02:00
mocks.cpp Clean up inter-library dependencies with interfaces (#6280) 2025-11-08 22:19:40 +01:00
mocks.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
test_card_database_path_provider.h Clean up inter-library dependencies with interfaces (#6280) 2025-11-08 22:19:40 +01:00