diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index f4dcb547d..abccf08b9 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -82,6 +82,7 @@ u8 *mc_alloc(memory_chip_t *mc, u32 size) { u8 *buffer; buffer = new u8[size]; + memset(buffer,0,size); mc->data = buffer; if(!buffer) { return NULL; }