mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
parent
33b1ca2b08
commit
35086fe17c
@ -87,7 +87,8 @@ static void processWorkList(SegManager *segMan, WorklistManager &wm, const Commo
|
||||
wm._worklist.pop_back();
|
||||
if (reg.segment != stackSegment) { // No need to repeat this one
|
||||
debugC(kDebugLevelGC, "[GC] Checking %04x:%04x", PRINT_REG(reg));
|
||||
if (reg.segment < heap.size() && heap[reg.segment]) {
|
||||
// We only check for valid offsets here. Fixes bugs #3299458 and #3295849.
|
||||
if (reg.segment < heap.size() && heap[reg.segment] && heap[reg.segment]->isValidOffset(reg.offset)) {
|
||||
// Valid heap object? Find its outgoing references!
|
||||
wm.pushArray(heap[reg.segment]->listAllOutgoingReferences(reg));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user