- 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:
Christoph Oelckers 2020-11-03 06:51:42 +01:00
parent 8d1409a708
commit 1a300aa220

View file

@ -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: