Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,11 @@ void W3DModelDrawModuleData::validateStuffForTimeAndWeather(const Drawable* draw
//-------------------------------------------------------------------------------------------------
W3DModelDrawModuleData::~W3DModelDrawModuleData()
{
// Explicitly clear containers to ensure proper destruction order and prevent
// memory corruption during shutdown. Each ModelConditionInfo contains a
// PristineBoneInfoMap that must be destroyed properly before implicit cleanup.
m_conditionStates.clear();
m_transitionMap.clear();
m_conditionStateMap.clear();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,11 @@ void W3DModelDrawModuleData::validateStuffForTimeAndWeather(const Drawable* draw
//-------------------------------------------------------------------------------------------------
W3DModelDrawModuleData::~W3DModelDrawModuleData()
{
// Explicitly clear containers to ensure proper destruction order and prevent
// memory corruption during shutdown. Each ModelConditionInfo contains a
// PristineBoneInfoMap that must be destroyed properly before implicit cleanup.
m_conditionStates.clear();
m_transitionMap.clear();
m_conditionStateMap.clear();
}

Expand Down
Loading