DS: Fix memory leak in DSReset

This commit is contained in:
Vicki Pfau 2020-07-19 19:56:15 -07:00
parent b55c041ec1
commit 2b4a4b5ab6
1 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ void DS7Reset(struct ARMCore* cpu) {
struct DS* ds = (struct DS*) cpu->master; struct DS* ds = (struct DS*) cpu->master;
mTimingClear(&ds->ds7.timing); mTimingClear(&ds->ds7.timing);
CircleBufferInit(&ds->ds7.fifo, 64); CircleBufferClear(&ds->ds7.fifo);
DSMemoryReset(ds); DSMemoryReset(ds);
DSDMAReset(&ds->ds7); DSDMAReset(&ds->ds7);
DSAudioReset(&ds->audio); DSAudioReset(&ds->audio);
@ -345,7 +345,7 @@ void DS9Reset(struct ARMCore* cpu) {
struct DS* ds = (struct DS*) cpu->master; struct DS* ds = (struct DS*) cpu->master;
mTimingClear(&ds->ds9.timing); mTimingClear(&ds->ds9.timing);
CircleBufferInit(&ds->ds9.fifo, 64); CircleBufferClear(&ds->ds9.fifo);
DSVideoReset(&ds->video); DSVideoReset(&ds->video);
DSGXReset(&ds->gx); DSGXReset(&ds->gx);
DSDMAReset(&ds->ds9); DSDMAReset(&ds->ds9);