mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-31 22:55:40 +00:00
memory: Delete memory region subregions
Allows for more graceful teardown of unicorn.
This commit is contained in:
parent
f75368cd0f
commit
28e90d563a
|
@ -116,6 +116,7 @@ int memory_free(struct uc_struct *uc)
|
|||
for (size_t i = 0; i < uc->mapped_block_count; i++) {
|
||||
MemoryRegion *mr = uc->mapped_blocks[i];
|
||||
mr->enabled = false;
|
||||
memory_region_del_subregion(get_system_memory(uc), mr);
|
||||
unicorn_free_memory_region(mr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue