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