Free dictionary on failed load (#733)

Free the dictionary if it failed to load.
This commit is contained in:
Christian Semmler 2025-11-10 19:38:40 -07:00 committed by GitHub
parent bad285500a
commit 39d2f52987
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;