# HG changeset patch # User nenolod # Date 1135548613 28800 # Node ID e089ce1ba088e701d6c96c5bc5b88d22ba68d9c7 # Parent 0daaddb109146546a40b7c40a52a4cf5aa9674ce [svn] further paranoia (try to explain why the crash happened, if one happens -- as sexypsf explodes if it cant find the psflib) diff -r 0daaddb10914 -r e089ce1ba088 Plugins/Input/sexypsf/Misc.c --- a/Plugins/Input/sexypsf/Misc.c Sun Dec 25 13:31:46 2005 -0800 +++ b/Plugins/Input/sexypsf/Misc.c Sun Dec 25 14:10:13 2005 -0800 @@ -235,9 +235,9 @@ PSFINFO *psfi; PSFINFO *tmpi; - //printf("Loading: %s\n",path); if(!(fp=fopen(path,"rb"))) { + printf("path %s failed to load\n", path); return(0); } diff -r 0daaddb10914 -r e089ce1ba088 Plugins/Input/sexypsf/PsxMem.c --- a/Plugins/Input/sexypsf/PsxMem.c Sun Dec 25 13:31:46 2005 -0800 +++ b/Plugins/Input/sexypsf/PsxMem.c Sun Dec 25 14:10:13 2005 -0800 @@ -87,11 +87,22 @@ } void psxMemShutdown() { - free(psxM); - free(psxP); - free(psxH); - free(psxR); - free(psxMemLUT); + if (psxM) + free(psxM); + + if (psxP) + free(psxP); + + if (psxH) + free(psxH); + + if (psxR) + free(psxR); + + if (psxMemLUT) + free(psxMemLUT); + + psxM = psxP = psxH = psxR = psxMemLUT = NULL; } u8 psxMemRead8(u32 mem) {