Merge pull request #1472 from Azaezel/alpha41/leakleak

scrub memlogs
This commit is contained in:
Brian Roberts 2025-05-19 20:32:14 -05:00 committed by GitHub
commit 8756e35853
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,6 +98,7 @@ namespace Memory
{
if (initialized) return;
std::memset(allocList, 0, sizeof(allocList));
std::memset(memLog, 0, sizeof(memLog));
allocCount = 0;
currentAllocId = 0;
initialized = true;
@ -209,6 +210,7 @@ namespace Memory
std::fclose(log);
std::memset(allocList, 0, sizeof(allocList));
std::memset(memLog, 0, sizeof(memLog));
allocCount = 0;
currentAllocId = 0;
initialized = false;