You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FlatHeightMapRenderObjClass::ReleaseResources never frees m_tiles. ReAcquireResources allocates a new array over it, so every device reset leaks the old tiles with their vertex and index buffers, textures and map reference.
ReleaseResources now calls releaseTiles first, same as initHeightData does when the tile count changes.
Only reachable with TerrainLOD = AUTOMATIC, retail data uses DISABLE. Relevant for #3237.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
Walkthrough
FlatHeightMapRenderObjClass::ReleaseResources now releases the terrain tile array before calling the base resource-release method.
xezon
added
Minor
Severity: Minor < Major < Critical < Blocker
Gen
Relates to Generals
ZH
Relates to Zero Hour
Memory
Is memory related
Fix
Is fixing something, but is not user facing
labels
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FixIs fixing something, but is not user facingGenRelates to GeneralsMemoryIs memory relatedMinorSeverity: Minor < Major < Critical < BlockerZHRelates to Zero Hour
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FlatHeightMapRenderObjClass::ReleaseResourcesnever freesm_tiles.ReAcquireResourcesallocates a new array over it, so every device reset leaks the old tiles with their vertex and index buffers, textures and map reference.ReleaseResourcesnow callsreleaseTilesfirst, same asinitHeightDatadoes when the tile count changes.Only reachable with
TerrainLOD = AUTOMATIC, retail data usesDISABLE. Relevant for #3237.