mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 04:20:45 +00:00
- fixed GC crash with new statusbar code.
It looks GZDoom never run in the case where using Create<> to create an object this left a pointer uninitialized. To be safe, use Calloc instead of Malloc to get the memory for the new object so that everything is nulled.
This commit is contained in:
parent
8d1409a708
commit
1a300aa220
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ private:
|
||||||
|
|
||||||
void *operator new(size_t len, nonew&)
|
void *operator new(size_t len, nonew&)
|
||||||
{
|
{
|
||||||
return M_Malloc(len);
|
return M_Calloc(len, 1);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue