CORE : Fix small memory leak (patch by chrono)

This commit is contained in:
bgk 2008-09-13 16:53:00 +00:00
parent 28fe0ce01c
commit 93cdd07256
1 changed files with 5 additions and 0 deletions

View File

@ -4017,6 +4017,11 @@ void gbCleanUp()
gbRom = NULL;
}
if(bios != NULL) {
free(bios);
bios = NULL;
}
if(gbMemory != NULL) {
free(gbMemory);
gbMemory = NULL;