summaryrefslogtreecommitdiff
path: root/riscos/theme_install.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/theme_install.c')
-rw-r--r--riscos/theme_install.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/riscos/theme_install.c b/riscos/theme_install.c
index 583e67c30..93ef0a97d 100644
--- a/riscos/theme_install.c
+++ b/riscos/theme_install.c
@@ -257,11 +257,10 @@ void theme_install_install(bool apply)
warn_user("ThemeApplyErr", 0);
} else {
free(option_theme);
- option_theme = theme_file;
+ option_theme = strdup(theme_install->leafname);
}
- } else {
- free(theme_file);
}
+ free(theme_file);
}