summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-06-22 23:10:27 -0700
committerMichael Pavone <pavone@retrodev.com>2018-06-22 23:10:27 -0700
commite1d177b8429e4eb59f5a6e853009dbf97ab95068 (patch)
tree4733ff57c8a2fbac7470ca64d89852ae01908686 /blastem.c
parente9dcae6c35185d58f41d49b8952f9d55984532fd (diff)
Fix some memory errors (mostly leaks) identified by valgrind
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blastem.c b/blastem.c
index 89d2694..138532b 100644
--- a/blastem.c
+++ b/blastem.c
@@ -259,7 +259,7 @@ void setup_saves(system_media *media, rom_info *info, system_header *context)
//initial save dir was calculated based on lock-on cartridge because that's where the save device is
//save directory used for save states should still be located in the normal place
free(save_dir);
- save_dir = get_save_dir(media);
+ parts[0] = save_dir = get_save_dir(media);
}
if (use_native_states || context->type != SYSTEM_GENESIS) {
parts[2] = "quicksave.state";