fix(core): Properly release memory when stopping emulation

Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
Collecting
2026-01-09 04:44:13 +00:00
parent 5a28f13c06
commit a5a6ed7f37

View File

@@ -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;