GB, GBA Video: Fix cache pointer leaking between instances
Vicki Pfau vi@endrift.com
Mon, 25 Jun 2018 10:23:36 -0700
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/gb/video.c
→
src/gb/video.c
@@ -147,7 +147,7 @@ video->renderer->writePalette(video->renderer, 9 * 4 + 3, video->palette[9 * 4 + 3]);
} void GBVideoDeinit(struct GBVideo* video) { - GBVideoAssociateRenderer(video, &dummyRenderer); + video->renderer->deinit(video->renderer); mappedMemoryFree(video->vram, GB_SIZE_VRAM); if (video->renderer->sgbCharRam) { mappedMemoryFree(video->renderer->sgbCharRam, SGB_SIZE_CHAR_RAM);
M
src/gba/video.c
→
src/gba/video.c
@@ -103,7 +103,7 @@ video->renderer->init(video->renderer);
} void GBAVideoDeinit(struct GBAVideo* video) { - GBAVideoAssociateRenderer(video, &dummyRenderer); + video->renderer->deinit(video->renderer); mappedMemoryFree(video->vram, SIZE_VRAM); }