mirror of https://github.com/OpenRCT2/OpenRCT2.git
Prevent double allocations of string allocated config values
Prevent double allocations of string allocated config values since they can be set by default and then set again by reading the config file.
This commit is contained in:
parent
5b685d5cad
commit
d50a1592fa
|
@ -598,11 +598,13 @@ extern "C"
|
|||
|
||||
void config_set_defaults()
|
||||
{
|
||||
config_release();
|
||||
Config::SetDefaults();
|
||||
}
|
||||
|
||||
bool config_open(const utf8 * path)
|
||||
{
|
||||
config_release();
|
||||
return Config::ReadFile(path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue