diff --git a/src/menu/rom_info.c b/src/menu/rom_info.c index 9fd9cd06..42beb1f3 100644 --- a/src/menu/rom_info.c +++ b/src/menu/rom_info.c @@ -846,7 +846,7 @@ static rom_err_t save_override (path_t *path, const char *id, int value, int def mini_t *ini = mini_try_load(path_get(rom_info_path)); if (!ini) { - path_free(overrides_path); + path_free(rom_info_path); return ROM_ERR_SAVE_IO; } diff --git a/src/menu/views/load_rom.c b/src/menu/views/load_rom.c index de131264..8ddf35b9 100644 --- a/src/menu/views/load_rom.c +++ b/src/menu/views/load_rom.c @@ -122,7 +122,7 @@ static const char *format_cic_type (rom_cic_type_t cic_type) { } } -static const char *format_boolean_type (bool bool_value) { +static inline const char *format_boolean_type (bool bool_value) { return bool_value ? "On" : "Off"; }