mirror of https://github.com/mgba-emu/mgba.git
GB, GBA Video: Fix cache pointer leaking between instances
This commit is contained in:
parent
6d4d014cfd
commit
a19928f030
|
@ -147,7 +147,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);
|
||||
if (video->renderer->sgbCharRam) {
|
||||
mappedMemoryFree(video->renderer->sgbCharRam, SGB_SIZE_CHAR_RAM);
|
||||
|
|
|
@ -103,7 +103,7 @@ void GBAVideoReset(struct GBAVideo* video) {
|
|||
}
|
||||
|
||||
void GBAVideoDeinit(struct GBAVideo* video) {
|
||||
GBAVideoAssociateRenderer(video, &dummyRenderer);
|
||||
video->renderer->deinit(video->renderer);
|
||||
mappedMemoryFree(video->vram, SIZE_VRAM);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue