#14448 Fix dangling formation names pointer in case data

RigCaseCellResultsData and RigFemPartResultsCollection held a raw pointer to RigFormationNames owned by a unique_ptr in RimFormationNames. Reloading or deleting the formation names left the case data with a dangling pointer. Store a copy instead, as RigFormationNames is a small value type with no identity.
This commit is contained in:
Magne Sjaastad committed 2026-08-04 13:05:26 +02:00
1 parent 5efcf88949
commit fe0e691e6c
8 files changed
+142 -9

No files matched your search

@@ -27,6 +27,14 @@ RigFormationNames::RigFormationNames()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RigFormationNames::isEmpty() const
{
return m_formationNames.empty();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------