From ed7afeef12576ad228f138bd7d7acd7f390dd25a Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 13 Jul 2023 00:03:03 +0300 Subject: [PATCH] drc: fix wrong unmap size --- libpcsxcore/new_dynarec/pcsxmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpcsxcore/new_dynarec/pcsxmem.c b/libpcsxcore/new_dynarec/pcsxmem.c index 8057b7ed..694b8d08 100644 --- a/libpcsxcore/new_dynarec/pcsxmem.c +++ b/libpcsxcore/new_dynarec/pcsxmem.c @@ -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; } -- 2.39.5