diff system.c @ 2560:6404643aca38

Fix crash when switching between loading ZIP and non-ZIP ROMs
author Michael Pavone <pavone@retrodev.com>
date Tue, 21 Jan 2025 21:34:19 -0800
parents c30f0a288ccf
children c768bbd912f1
line wrap: on
line diff
--- a/system.c	Sun Jan 19 22:28:32 2025 -0800
+++ b/system.c	Tue Jan 21 21:34:19 2025 -0800
@@ -149,6 +149,7 @@
 #ifndef IS_LIB
 	if (dst->zip) {
 		zip_close(dst->zip);
+		dst->zip = NULL;
 	}
 #endif
 	dst->orig_path = filename;