diff --git a/src/dmg/GB.cpp b/src/dmg/GB.cpp index fe8760f5..89452e8e 100644 --- a/src/dmg/GB.cpp +++ b/src/dmg/GB.cpp @@ -4017,6 +4017,11 @@ void gbCleanUp() gbRom = NULL; } + if(bios != NULL) { + free(bios); + bios = NULL; + } + if(gbMemory != NULL) { free(gbMemory); gbMemory = NULL;