PPU: free prx segments

This commit is contained in:
Nekotekina 2017-07-05 22:52:02 +03:00
parent 0ee454f44b
commit 74f2be7307
2 changed files with 10 additions and 1 deletions

View file

@ -890,6 +890,14 @@ std::shared_ptr<lv2_prx> ppu_load_prx(const ppu_prx_object& elf, const std::stri
return prx;
}
void ppu_unload_prx(const lv2_prx& prx)
{
for (auto& seg : prx.segs)
{
vm::dealloc(seg.addr, vm::main);
}
}
void ppu_load_exec(const ppu_exec_object& elf)
{
if (g_cfg.core.hook_functions)