Mercurial > repos > blastem
diff genesis.c @ 1592:31effaadf877
Fix some memory errors (mostly leaks) identified by valgrind
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 22 Jun 2018 23:10:27 -0700 |
parents | 430dd12e4010 |
children | 24508cb54f87 |
line wrap: on
line diff
--- a/genesis.c Fri Jun 22 21:11:38 2018 -0700 +++ b/genesis.c Fri Jun 22 23:10:27 2018 -0700 @@ -1301,7 +1301,6 @@ gen->psg = malloc(sizeof(psg_context)); psg_init(gen->psg, gen->master_clock, MCLKS_PER_PSG); - gen->zram = calloc(1, Z80_RAM_BYTES); z80_map[0].buffer = gen->zram = calloc(1, Z80_RAM_BYTES); #ifndef NO_Z80 z80_options *z_opts = malloc(sizeof(z80_options));