summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/blastem.c b/blastem.c
index 6005a04..6234301 100644
--- a/blastem.c
+++ b/blastem.c
@@ -310,6 +310,9 @@ static void on_drag_drop(const char *filename)
static system_media cart, lock_on;
void reload_media(void)
{
+ if (!current_system) {
+ return;
+ }
if (current_system->next_rom) {
free(current_system->next_rom);
}