summaryrefslogtreecommitdiff
path: root/src/ecs
diff options
context:
space:
mode:
authorErnesto Lanchares <elancha98@proton.me>2025-04-04 18:57:21 +0200
committerErnesto Lanchares <elancha98@proton.me>2025-04-04 18:57:21 +0200
commitecff349a31843a4c0472b76089dfa0d9c9b8102d (patch)
treeb842b2f781bef715e9e158f7ef0490d448853110 /src/ecs
parent25e51f9aead0d1de6d6a9a9660d9363ef145316e (diff)
Fixed memory leak in ECS.HEADmaster
Diffstat (limited to 'src/ecs')
-rw-r--r--src/ecs/entities.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ecs/entities.zig b/src/ecs/entities.zig
index fc573ce..a591bb4 100644
--- a/src/ecs/entities.zig
+++ b/src/ecs/entities.zig
@@ -22,6 +22,7 @@ pub const Human = struct {
speed: components.Speed,
};
+// TODO(ernesto): Move pool to its own file
pub const Pool = struct {
humans: std.MultiArrayList(Human),
resources: Resources,
@@ -64,6 +65,7 @@ pub const Pool = struct {
self.humans.deinit(self.allocator);
self.system_groups.deinit();
+ self.sync_groups.deinit();
self.thread_pool.deinit();
self.allocator.destroy(self.thread_pool);
}