Browse Source

Fix v1 NROM double-free

v2
Nathaniel Walizer 8 months ago
parent
commit
a4fceb584b
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      v1/src/map/nrom.c

+ 1
- 7
v1/src/map/nrom.c View File

@@ -38,13 +38,7 @@ static void* nrom_init(nes_mapper* nes_map, nes_cart* cart) {
}

static void nrom_done(void* data) {
nrom_mapper* map = (nrom_mapper*)data;
if (NULL != map) {
if (map->chr_rom_banks <= 0) {
free(map->chr_rom);
}
free(data);
}
if (NULL != data) free(data);
}

static inline uint8_t* nrom_prg_addr(nrom_mapper* map,


Loading…
Cancel
Save