Avoid a potential memory leak if RamWorks memory size were configurable. (PR #1225)

This commit is contained in:
Andrea 2023-05-08 14:45:35 +01:00 committed by GitHub
parent 4b18918e0f
commit 771282a792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1296,7 +1296,7 @@ void MemDestroy()
delete [] pCxRomPeripheral; delete [] pCxRomPeripheral;
#ifdef RAMWORKS #ifdef RAMWORKS
for (UINT i=1; i<g_uMaxExPages; i++) for (UINT i=1; i<kMaxExMemoryBanks; i++)
{ {
if (RWpages[i]) if (RWpages[i])
{ {