From: notaz Date: Wed, 12 Jul 2023 21:03:03 +0000 (+0300) Subject: drc: fix wrong unmap size X-Git-Tag: r24~252 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed7afeef12576ad228f138bd7d7acd7f390dd25a;p=pcsx_rearmed.git drc: fix wrong unmap size --- 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; }