mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-26 04:33:29 +00:00
fix(core): Properly release memory when stopping emulation
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -672,7 +672,11 @@ HostMemory::HostMemory(size_t backing_size_, size_t virtual_size_)
|
||||
}
|
||||
}
|
||||
|
||||
HostMemory::~HostMemory() = default;
|
||||
HostMemory::~HostMemory() {
|
||||
// We leave this empty.
|
||||
// The "impl" unique_ptr handles the cleanup automatically and correctly.
|
||||
// Manually calling munmap here causes a "double-free" crash.
|
||||
}
|
||||
|
||||
HostMemory::HostMemory(HostMemory&&) noexcept = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user