LV2: Memory state post-exitspawn fixes

* Fix memory capacity if SDK version of the following executable differs from the original process'.
* Keep user memory containers, they are not freed at exitspawn!

Hw test 4bf60023ee
This commit is contained in:
Eladash 2022-05-12 19:59:33 +03:00 committed by Ivan
parent a2a6303a22
commit 524da5dc54
4 changed files with 52 additions and 12 deletions

View file

@ -1806,6 +1806,7 @@ void Emulator::Kill(bool allow_autoexit)
disc.clear();
klic.clear();
hdd1.clear();
init_mem_containers = nullptr;
m_config_path.clear();
m_config_mode = cfg_mode::custom;
return;
@ -1951,6 +1952,7 @@ void Emulator::Kill(bool allow_autoexit)
disc.clear();
klic.clear();
hdd1.clear();
init_mem_containers = nullptr;
m_config_path.clear();
m_config_mode = cfg_mode::custom;