summaryrefslogtreecommitdiffstats
path: root/hacks/m6502.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/m6502.c')
-rw-r--r--hacks/m6502.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hacks/m6502.c b/hacks/m6502.c
index ce18e9d..d7c78e1 100644
--- a/hacks/m6502.c
+++ b/hacks/m6502.c
@@ -299,7 +299,9 @@ static void
m6502_free (Display *dpy, Window window, void *closure)
{
struct state *st = (struct state *) closure;
+ m6502_destroy6502(st->machine);
analogtv_release(st->tv);
+ free (st->inp);
free (st->file);
free (st);
}