chore: remove all memory leaks

This commit is contained in:
2022-01-03 20:08:55 -06:00
parent 8257a3899a
commit 3aa680ab8c
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;