chore: remove all memory leaks

This commit is contained in:
2022-10-21 05:11:47 -03:00
parent 5c5179a553
commit da7300a78c
6 changed files with 37 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ pub const Scheduler = struct {
return scheduler;
}
pub fn deinit(self: *@This()) void {
self.queue.deinit();
}
pub fn handleEvent(self: *@This(), _: *Arm7tdmi, _: *Bus) void {
const should_handle = if (self.queue.peek()) |e| self.tick >= e.tick else false;