From 62fdcbc92ba3c4a71742293d75d853c95eb5f3c7 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 13 Nov 2015 22:56:59 -0800 Subject: Selecting a second game from the menu now works --- z80_to_x86.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'z80_to_x86.c') diff --git a/z80_to_x86.c b/z80_to_x86.c index c373d1b..a114da3 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -2596,6 +2596,13 @@ void z80_run(z80_context * context, uint32_t target_cycle) } } +void z80_options_free(z80_options *opts) +{ + free(opts->gen.native_code_map); + free(opts->gen.ram_inst_sizes); + free(opts); +} + void z80_assert_reset(z80_context * context, uint32_t cycle) { z80_run(context, cycle); -- cgit v1.2.3