Skip to content

potentially fix a memory leak due to hash map never being cleared#17

Merged
lowercasebtw merged 1 commit intoLegacy-Visuals-Project:1.21.5/developmentfrom
MicrocontrollersDev:mem-leak-fix
Jun 28, 2025
Merged

potentially fix a memory leak due to hash map never being cleared#17
lowercasebtw merged 1 commit intoLegacy-Visuals-Project:1.21.5/developmentfrom
MicrocontrollersDev:mem-leak-fix

Conversation

@MicrocontrollersDev
Copy link
Contributor

as reported on discord, this should be enough to fix the issue, awaiting testing & confirmation
image

@lowercasebtw
Copy link
Member

Thank you

@lowercasebtw lowercasebtw merged commit c408990 into Legacy-Visuals-Project:1.21.5/development Jun 28, 2025
2 checks passed
lowercasebtw pushed a commit that referenced this pull request Jun 28, 2025
Uses WeakHashMap instead of HashMap in EntityUtils for the ENTITY_RENDER_STATE map, since it is never cleared. It will now clear when out of scope.
@MicrocontrollersDev MicrocontrollersDev deleted the mem-leak-fix branch June 28, 2025 05:51
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.

2 participants

Comments