GB, GBA Video: Fix cache pointer leaking between instances

This commit is contained in:
Vicki Pfau 2018-06-25 10:23:36 -07:00
parent 54c4da8f8a
commit 76a361452b
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ void GBVideoReset(struct GBVideo* video) {
}
void GBVideoDeinit(struct GBVideo* video) {
GBVideoAssociateRenderer(video, &dummyRenderer);
video->renderer->deinit(video->renderer);
mappedMemoryFree(video->vram, GB_SIZE_VRAM);
}

View File

@ -105,7 +105,7 @@ void GBAVideoReset(struct GBAVideo* video) {
}
void GBAVideoDeinit(struct GBAVideo* video) {
GBAVideoAssociateRenderer(video, &dummyRenderer);
video->renderer->deinit(video->renderer);
mappedMemoryFree(video->vram, SIZE_VRAM);
}