(iOS) Menu - cleanup

This commit is contained in:
Twinaphex 2014-10-08 02:50:54 +02:00
parent 7babf3c65f
commit 1898bd93b1

View File

@ -856,12 +856,12 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
{
config_file_t* config = (config_file_t*)config_file_new(self.pathToSave.UTF8String);
if (config)
{
setting_data_save_config(setting_data_get_list(SL_FLAG_ALL_SETTINGS, false), config);
config_file_write(config, self.pathToSave.UTF8String);
config_file_free(config);
}
if (!config)
return;
setting_data_save_config(setting_data_get_list(SL_FLAG_ALL_SETTINGS, false), config);
config_file_write(config, self.pathToSave.UTF8String);
config_file_free(config);
}
}