mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-03 14:09:45 +00:00
Ignore when a proxied block points to erased mem.
Happens for example when a new module is loaded, sometimes.
This commit is contained in:
parent
c3a6092e26
commit
95dcadb6ae
@ -447,7 +447,10 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate) {
|
||||
if (b->proxyFor) {
|
||||
for (size_t i = 0; i < b->proxyFor->size(); i++) {
|
||||
int proxied_blocknum = GetBlockNumberFromStartAddress((*b->proxyFor)[i], false);
|
||||
DestroyBlock(proxied_blocknum, invalidate);
|
||||
// If it was already cleared, we don't know which to destroy.
|
||||
if (proxied_blocknum != -1) {
|
||||
DestroyBlock(proxied_blocknum, invalidate);
|
||||
}
|
||||
}
|
||||
b->proxyFor->clear();
|
||||
delete b->proxyFor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user