{ecs,mach}: fix some memory issues #380

Merged
dweiller merged 3 commits from ecs-memory-bug into main 2022-07-01 23:48:36 +00:00
dweiller commented 2022-06-30 15:36:48 +00:00 (Migrated from github.com)

The swapped_entity_id was getting the id of the row before the swap remove. This meant the position of the swapped entity was not updated in the EntityID -> Pointer hash map.

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
The `swapped_entity_id` was getting the id of the row _before_ the swap remove. This meant the position of the swapped entity was not updated in the `EntityID` -> `Pointer` hash map. - [x] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
dweiller commented 2022-06-30 16:26:37 +00:00 (Migrated from github.com)

Also fixed a memory leak in ArchetypeStorage.setCapacity().

Also fixed a memory leak in `ArchetypeStorage.setCapacity()`.
emidoots (Migrated from github.com) approved these changes 2022-07-01 23:48:28 +00:00
emidoots (Migrated from github.com) left a comment

Thank you!

Thank you!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach!380
No description provided.