mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
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:
committed by
Michael Steenbeek
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user