fix(emu): resolve double free with main mem ptr
This commit is contained in:
		@@ -33,7 +33,6 @@ pub fn init(allocator: Allocator, scheduler: *Scheduler, shared_ctx: SharedConte
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pub fn deinit(self: *@This(), allocator: Allocator) void {
 | 
			
		||||
    allocator.destroy(self.main);
 | 
			
		||||
    allocator.destroy(self.wram);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,6 @@ pub fn init(allocator: Allocator, scheduler: *Scheduler, shared_ctx: SharedConte
 | 
			
		||||
pub fn deinit(self: *@This(), allocator: Allocator) void {
 | 
			
		||||
    self.ppu.deinit(allocator);
 | 
			
		||||
 | 
			
		||||
    allocator.destroy(self.main);
 | 
			
		||||
    allocator.destroy(self.vram1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user