drc: fix wrong unmap size
authornotaz <notasas@gmail.com>
Wed, 12 Jul 2023 21:03:03 +0000 (00:03 +0300)
committernotaz <notasas@gmail.com>
Wed, 12 Jul 2023 22:25:45 +0000 (01:25 +0300)
libpcsxcore/new_dynarec/pcsxmem.c

index 8057b7e..694b8d0 100644 (file)
@@ -502,6 +502,6 @@ void new_dyna_pcsx_mem_reset(void)
 
 void new_dyna_pcsx_mem_shutdown(void)
 {
-       psxUnmap(mem_readtab, 0x200000 * 4, MAP_TAG_LUTS);
+       psxUnmap(mem_readtab, 0x200000 * sizeof(mem_readtab[0]), MAP_TAG_LUTS);
        mem_writetab = mem_readtab = NULL;
 }