mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed crash while exiting if compiled by GCC -O3.
This commit is contained in:
parent
e621b43dd3
commit
3b7d18c129
1 changed files with 3 additions and 3 deletions
|
@ -272,6 +272,7 @@ VMFrameStack::~VMFrameStack()
|
||||||
next = block->NextBlock;
|
next = block->NextBlock;
|
||||||
delete[] (VM_UBYTE *)block;
|
delete[] (VM_UBYTE *)block;
|
||||||
}
|
}
|
||||||
|
Blocks = NULL;
|
||||||
}
|
}
|
||||||
if (UnusedBlocks != NULL)
|
if (UnusedBlocks != NULL)
|
||||||
{
|
{
|
||||||
|
@ -281,9 +282,8 @@ VMFrameStack::~VMFrameStack()
|
||||||
next = block->NextBlock;
|
next = block->NextBlock;
|
||||||
delete[] (VM_UBYTE *)block;
|
delete[] (VM_UBYTE *)block;
|
||||||
}
|
}
|
||||||
|
UnusedBlocks = NULL;
|
||||||
}
|
}
|
||||||
Blocks = NULL;
|
|
||||||
UnusedBlocks = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
Loading…
Reference in a new issue