Mercurial > audlegacy
comparison Plugins/Input/sexypsf/PsxMem.c @ 335:e089ce1ba088 trunk
[svn] further paranoia (try to explain why the crash happened, if one happens -- as sexypsf explodes if it cant find the psflib)
author | nenolod |
---|---|
date | Sun, 25 Dec 2005 14:10:13 -0800 |
parents | 42cdc99e395a |
children | f26682a2825b |
comparison
equal
deleted
inserted
replaced
334:0daaddb10914 | 335:e089ce1ba088 |
---|---|
85 memset(psxM, 0, 0x00200000); | 85 memset(psxM, 0, 0x00200000); |
86 memset(psxP, 0, 0x00010000); | 86 memset(psxP, 0, 0x00010000); |
87 } | 87 } |
88 | 88 |
89 void psxMemShutdown() { | 89 void psxMemShutdown() { |
90 free(psxM); | 90 if (psxM) |
91 free(psxP); | 91 free(psxM); |
92 free(psxH); | 92 |
93 free(psxR); | 93 if (psxP) |
94 free(psxMemLUT); | 94 free(psxP); |
95 | |
96 if (psxH) | |
97 free(psxH); | |
98 | |
99 if (psxR) | |
100 free(psxR); | |
101 | |
102 if (psxMemLUT) | |
103 free(psxMemLUT); | |
104 | |
105 psxM = psxP = psxH = psxR = psxMemLUT = NULL; | |
95 } | 106 } |
96 | 107 |
97 u8 psxMemRead8(u32 mem) { | 108 u8 psxMemRead8(u32 mem) { |
98 char *p; | 109 char *p; |
99 u32 t; | 110 u32 t; |