From 848b806c5597cd13b250812f32c4848f74599ab0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Tue, 27 Sep 2016 00:59:38 +0200 Subject: [PATCH] (Vita) Fix deinit bug --- frontend/libretro.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/libretro.c b/frontend/libretro.c index 2efccfac..81afc30d 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -281,15 +281,16 @@ psx_map_t custom_psx_maps[] = { int init_vita_mmap(){ int n; + void * tmpaddr; addr = malloc(64*1024*1024); if(addr==NULL) return -1; - addr = ((u32)(addr+0xFFFFFF))&~0xFFFFFF; - custom_psx_maps[0].buffer=addr+0x2000000; - custom_psx_maps[1].buffer=addr+0x1800000; - custom_psx_maps[2].buffer=addr+0x1c00000; - custom_psx_maps[3].buffer=addr+0x0000000; - custom_psx_maps[4].buffer=addr+0x1000000; + tmpaddr = ((u32)(addr+0xFFFFFF))&~0xFFFFFF; + custom_psx_maps[0].buffer=tmpaddr+0x2000000; + custom_psx_maps[1].buffer=tmpaddr+0x1800000; + custom_psx_maps[2].buffer=tmpaddr+0x1c00000; + custom_psx_maps[3].buffer=tmpaddr+0x0000000; + custom_psx_maps[4].buffer=tmpaddr+0x1000000; #if 0 for(n = 0; n < 5; n++){ sceClibPrintf("addr reserved %x\n",custom_psx_maps[n].buffer); -- 2.39.5