mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-10 18:21:14 +00:00
Free dictionary on failed load (#733)
Free the dictionary if it failed to load.
This commit is contained in:
parent
bad285500a
commit
39d2f52987
@ -1075,6 +1075,8 @@ bool IsleApp::LoadConfig()
|
||||
// [library:config]
|
||||
// Load sane defaults if dictionary failed to load
|
||||
if (!dict || dict->n == 0) {
|
||||
iniparser_freedict(dict);
|
||||
|
||||
if (m_iniPath) {
|
||||
SDL_Log("Invalid config path '%s'", m_iniPath);
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user