Skip to content

Commit

Permalink
GB, GBA Video: Fix cache pointer leaking between instances
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Jun 25, 2018
1 parent 6d4d014 commit a19928f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gb/video.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/gba/video.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit a19928f

Please sign in to comment.