From ba8a5e564b1df5ccd010307d31ad654ea75be999 Mon Sep 17 00:00:00 2001 From: Timo Strunk Date: Wed, 8 Oct 2014 17:53:40 +0200 Subject: [PATCH] With need_fullpath == True and a zipped game image, RA did not clean up properly afterwards. Now the image is deleted again after exit. --- file.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/file.c b/file.c index 79b47805d3..9213871697 100644 --- a/file.c +++ b/file.c @@ -410,6 +410,14 @@ static bool load_content(const struct retro_subsystem_info *special, info[i].path = additional_path_allocs->elems [additional_path_allocs->size -1 ].data; + + /* g_extern.temporary_content is initialized in init_content_file + * The following part takes care of cleanup of the unzipped files + * after exit. + */ + rarch_assert(g_extern.temporary_content != NULL); + string_list_append(g_extern.temporary_content, + new_path, attr); } } }