all repos — mgba @ 2cd4bb3cff0caa48da2d7797cab99c5cdc51e0d4

mGBA Game Boy Advance Emulator

Initialize memory->eventDiff; fixes a valgrind warning
Jeffrey Pfau jeffrey@endrift.com
Fri, 31 Jan 2014 23:24:38 -0800
commit

2cd4bb3cff0caa48da2d7797cab99c5cdc51e0d4

parent

2f39a575672e95c5e073518fa0b91e8ac60cbd11

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -47,6 +47,7 @@ memory->dma[i].nextEvent = INT_MAX;

} memory->activeDMA = -1; memory->nextDMA = INT_MAX; + memory->eventDiff = 0; if (!memory->wram || !memory->iwram) { GBAMemoryDeinit(memory);