fix: by convention deinit() should not take pointers to self
This commit is contained in:
parent
c6123d8a6d
commit
9f64804763
|
@ -23,7 +23,7 @@ pub const Bus = struct {
|
|||
};
|
||||
}
|
||||
|
||||
pub fn deinit(self: *@This()) void {
|
||||
pub fn deinit(self: @This()) void {
|
||||
self.pak.deinit();
|
||||
self.bios.deinit();
|
||||
self.ppu.deinit();
|
||||
|
|
|
@ -18,7 +18,7 @@ pub const Bios = struct {
|
|||
};
|
||||
}
|
||||
|
||||
pub fn deinit(self: *@This()) void {
|
||||
pub fn deinit(self: @This()) void {
|
||||
self.alloc.free(self.buf);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ pub const GamePak = struct {
|
|||
};
|
||||
}
|
||||
|
||||
pub fn deinit(self: *@This()) void {
|
||||
pub fn deinit(self: @This()) void {
|
||||
self.alloc.free(self.buf);
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ pub const Ppu = struct {
|
|||
};
|
||||
}
|
||||
|
||||
pub fn deinit(self: *@This()) void {
|
||||
pub fn deinit(self: @This()) void {
|
||||
self.vram.deinit();
|
||||
}
|
||||
};
|
||||
|
@ -36,7 +36,7 @@ const Palette = struct {
|
|||
};
|
||||
}
|
||||
|
||||
fn deinit(self: *@This()) void {
|
||||
fn deinit(self: @This()) void {
|
||||
self.alloc.free(self.buf);
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ const Vram = struct {
|
|||
};
|
||||
}
|
||||
|
||||
fn deinit(self: *@This()) void {
|
||||
fn deinit(self: @This()) void {
|
||||
self.alloc.free(self.buf);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ pub const Scheduler = struct {
|
|||
return scheduler;
|
||||
}
|
||||
|
||||
pub fn deinit(self: *@This()) void {
|
||||
pub fn deinit(self: @This()) void {
|
||||
self.queue.deinit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue