Skip to content

W3DModelDraw: Explicitly clear containers in destructor to prevent memory corruption#121

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-w3dmodeldraw-destructor
Open

W3DModelDraw: Explicitly clear containers in destructor to prevent memory corruption#121
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-w3dmodeldraw-destructor

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-SV. The issue was that: Access violation read in DynamicMemoryAllocator::freeBytes caused by std::map destructor attempting to free corrupted memory during ModelConditionInfo cleanup.

Explicitly clear m_conditionStates and m_transitionMap in the W3DModelDrawModuleData destructor to ensure proper destruction order and prevent memory corruption during shutdown. This is necessary because each ModelConditionInfo contains a PristineBoneInfoMap that must be destroyed properly before implicit cleanup.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2544092

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

Comments