- Fixed crash while exiting if compiled by GCC -O3.

This commit is contained in:
Edoardo Prezioso 2017-01-13 11:39:52 +01:00 committed by Christoph Oelckers
parent e621b43dd3
commit 3b7d18c129

View file

@ -272,6 +272,7 @@ VMFrameStack::~VMFrameStack()
next = block->NextBlock;
delete[] (VM_UBYTE *)block;
}
Blocks = NULL;
}
if (UnusedBlocks != NULL)
{
@ -281,9 +282,8 @@ VMFrameStack::~VMFrameStack()
next = block->NextBlock;
delete[] (VM_UBYTE *)block;
}
UnusedBlocks = NULL;
}
Blocks = NULL;
UnusedBlocks = NULL;
}
//===========================================================================
@ -608,4 +608,4 @@ ADD_STAT(VM)
VMCycles[0].Reset();
VMCalls[0] = 0;
return FStringf("VM time in last 10 tics: %f ms, %d calls", added, addedc);
}
}