valgrinded
This commit is contained in:
parent
69ff91ad7b
commit
7874ddf6b6
@ -16,6 +16,7 @@ pub fn build(b: *Builder) void {
|
||||
var exe = b.addExecutable(name, source);
|
||||
exe.setBuildMode(b.standardReleaseOptions());
|
||||
exe.addPackagePath("ecs", "src/ecs.zig");
|
||||
exe.linkSystemLibrary("c");
|
||||
|
||||
const run_cmd = exe.run();
|
||||
const exe_step = b.step(name, b.fmt("run {}.zig", .{name}));
|
||||
|
@ -21,11 +21,11 @@ pub const Scheduler = struct {
|
||||
|
||||
// get a closure so that we can safely deinit this later
|
||||
proc.process.deinit = struct {
|
||||
fn deinit(process: *Process, allocator: *std.mem.Allocator) void {
|
||||
fn deinit(process: *Process, alloc: *std.mem.Allocator) void {
|
||||
if (process.next) |next_process| {
|
||||
next_process.deinit(next_process, allocator);
|
||||
next_process.deinit(next_process, alloc);
|
||||
}
|
||||
allocator.destroy(@fieldParentPtr(T, "process", process));
|
||||
alloc.destroy(@fieldParentPtr(T, "process", process));
|
||||
}
|
||||
}.deinit;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user