mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Fix the destruction proxy blocks in DestroyBlock() in JitBlockCache.cpp.
Prior to this, it was possible for the wrong block to be deleted multiple times.
This commit is contained in:
1 parent
6f389365d0
commit
aaf834c032
1 file changed
+1
-1
@@ -436,7 +436,7 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate) {
|
||||
// this block or its 'parent', so now that this block has changed, the root block must be destroyed.
|
||||
for (size_t i = 0; i < b->proxyFor.size(); i++) {
|
||||
int proxied_blocknum = GetBlockNumberFromStartAddress(b->proxyFor[i], false);
|
||||
DestroyBlock(block_num, invalidate);
|
||||
DestroyBlock(proxied_blocknum, invalidate);
|
||||
}
|
||||
b->proxyFor.clear();
|
||||
// TODO: Remove from proxyBlockIndices_.
|
||||
|
||||
Reference in new issue
Block a user