mirror of https://github.com/mgba-emu/mgba.git
Initialize memory->eventDiff; fixes a valgrind warning
This commit is contained in:
parent
2f39a57567
commit
2cd4bb3cff
|
@ -47,6 +47,7 @@ void GBAMemoryInit(struct GBAMemory* memory) {
|
||||||
}
|
}
|
||||||
memory->activeDMA = -1;
|
memory->activeDMA = -1;
|
||||||
memory->nextDMA = INT_MAX;
|
memory->nextDMA = INT_MAX;
|
||||||
|
memory->eventDiff = 0;
|
||||||
|
|
||||||
if (!memory->wram || !memory->iwram) {
|
if (!memory->wram || !memory->iwram) {
|
||||||
GBAMemoryDeinit(memory);
|
GBAMemoryDeinit(memory);
|
||||||
|
|
Loading…
Reference in New Issue