From fedef6c842ef00cdc9971b224c028dd7da17c74c Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 12 Jul 2016 17:50:24 +0000 Subject: [PATCH] apply patch #174 --- desmume/src/encrypt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/encrypt.h b/desmume/src/encrypt.h index c191135c9..89ecadc03 100644 --- a/desmume/src/encrypt.h +++ b/desmume/src/encrypt.h @@ -24,7 +24,7 @@ struct _KEY1 { _KEY1(const u8 *inKeyBufPtr) { - if (keyBuf) delete keyBuf; + if (keyBuf) delete[] keyBuf; keyBuf = new u32 [0x412]; memset(keyBuf, 0x00, 0x412 * sizeof(u32)); memset(&keyCode[0], 0, sizeof(keyCode)); @@ -35,7 +35,7 @@ struct _KEY1 { if (keyBuf) { - delete keyBuf; + delete[] keyBuf; keyBuf = NULL; } }