Bus: Fix assertion failing if booting fails

This commit is contained in:
Connor McLaughlin 2020-10-28 17:31:25 +10:00
parent 7ce55ca800
commit 392c7af738
1 changed files with 3 additions and 0 deletions

View File

@ -128,7 +128,10 @@ void Shutdown()
{
UnmapFastmemViews();
if (g_ram)
{
m_memory_arena.ReleaseViewPtr(g_ram, RAM_SIZE);
g_ram = nullptr;
}
CPU::g_state.fastmem_base = nullptr;
}