apply patch #174

This commit is contained in:
zeromus 2016-07-12 17:50:24 +00:00
parent 07c08f03d2
commit fedef6c842
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ struct _KEY1
{ {
_KEY1(const u8 *inKeyBufPtr) _KEY1(const u8 *inKeyBufPtr)
{ {
if (keyBuf) delete keyBuf; if (keyBuf) delete[] keyBuf;
keyBuf = new u32 [0x412]; keyBuf = new u32 [0x412];
memset(keyBuf, 0x00, 0x412 * sizeof(u32)); memset(keyBuf, 0x00, 0x412 * sizeof(u32));
memset(&keyCode[0], 0, sizeof(keyCode)); memset(&keyCode[0], 0, sizeof(keyCode));
@ -35,7 +35,7 @@ struct _KEY1
{ {
if (keyBuf) if (keyBuf)
{ {
delete keyBuf; delete[] keyBuf;
keyBuf = NULL; keyBuf = NULL;
} }
} }