- fixed calculation of allocated memory for garbage collection
Some checks failed
Continuous Integration / Linux Clang 6 | Debug (push) Has been cancelled
Continuous Integration / Linux GCC 9 | Debug (push) Has been cancelled
Continuous Integration / Visual Studio 64-bit | Debug (push) Has been cancelled
Continuous Integration / macOS | Debug (push) Has been cancelled
Continuous Integration / Linux GCC 5 | MinSizeRel (push) Has been cancelled
Continuous Integration / Linux GCC 7 | RelWithDebInfo (push) Has been cancelled
Continuous Integration / macOS | Release (push) Has been cancelled
Continuous Integration / Linux Clang 9 | Release (push) Has been cancelled
Continuous Integration / Visual Studio 32-bit | Release (push) Has been cancelled
Continuous Integration / Visual Studio 64-bit | Release (push) Has been cancelled
Some checks failed
Continuous Integration / Linux Clang 6 | Debug (push) Has been cancelled
Continuous Integration / Linux GCC 9 | Debug (push) Has been cancelled
Continuous Integration / Visual Studio 64-bit | Debug (push) Has been cancelled
Continuous Integration / macOS | Debug (push) Has been cancelled
Continuous Integration / Linux GCC 5 | MinSizeRel (push) Has been cancelled
Continuous Integration / Linux GCC 7 | RelWithDebInfo (push) Has been cancelled
Continuous Integration / macOS | Release (push) Has been cancelled
Continuous Integration / Linux Clang 9 | Release (push) Has been cancelled
Continuous Integration / Visual Studio 32-bit | Release (push) Has been cancelled
Continuous Integration / Visual Studio 64-bit | Release (push) Has been cancelled
https://forum.zdoom.org/viewtopic.php?t=68897
This commit is contained in:
parent
3a23cc69d6
commit
18371fb27a
2 changed files with 27 additions and 3 deletions
|
|
@ -266,14 +266,12 @@ private:
|
|||
|
||||
void *operator new(size_t len, nonew&)
|
||||
{
|
||||
GC::AllocBytes += len;
|
||||
return M_Malloc(len);
|
||||
}
|
||||
public:
|
||||
|
||||
void operator delete (void *mem, nonew&)
|
||||
{
|
||||
GC::AllocBytes -= _msize(mem);
|
||||
M_Free(mem);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue