Fixed a minor memory leak related to gamelist.xml entries where the file extension was no longer configured in es_systems.xml

This commit is contained in:
Leon Styhre 2023-10-17 22:42:53 +02:00
parent a36f866278
commit 4c4529b650

View file

@ -83,6 +83,9 @@ namespace GamelistFileParser
#endif
<< "\" is present in gamelist.xml but the extension is not "
"configured in es_systems.xml";
// In the unlikely event that this was the only entry in the folder.
if (treeNode->getChildren().empty())
delete treeNode;
return nullptr;
}