Avoid a potential memory leak if RamWorks memory size were configurable.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com
This commit is contained in:
Andrea Odetti 2023-05-08 11:17:13 +01:00
parent 4b18918e0f
commit 58f9b015bb

View File

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