GUI: Use after free
This commit is contained in:
parent
06d83f148f
commit
91e6abd305
1 changed files with 2 additions and 2 deletions
|
@ -757,8 +757,6 @@ bool ThemeEngine::loadDefaultXML() {
|
|||
return false;
|
||||
}
|
||||
|
||||
free(tmpXML);
|
||||
|
||||
_themeName = "ScummVM Classic Theme (Builtin Version)";
|
||||
_themeId = "builtin";
|
||||
_themeFile.clear();
|
||||
|
@ -766,6 +764,8 @@ bool ThemeEngine::loadDefaultXML() {
|
|||
bool result = _parser->parse();
|
||||
_parser->close();
|
||||
|
||||
free(tmpXML);
|
||||
|
||||
return result;
|
||||
#else
|
||||
warning("The built-in theme is not enabled in the current build. Please load an external theme");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue