From 55b3d8a5bc95e62c1a6c405afb7cae72d377475c Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sun, 6 Jan 2019 10:42:12 +0800 Subject: [PATCH] FDS: Fix pointers are not freed when closing rom --- src/fds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fds.c b/src/fds.c index 5f2b56b..2dc76a6 100644 --- a/src/fds.c +++ b/src/fds.c @@ -848,6 +848,8 @@ int FDSLoad(const char *name, FCEUFILE *fp) { diskdatao[x] = (uint8*)FCEU_malloc(65500); memcpy(diskdatao[x], diskdata[x], 65500); } + + DiskWritten = 1; #if 0 /* auxillary rom loading for save file is now handled