Fix memory leak in FontLoader::loadFontFromXml

Tried building with -DCMAKE_CXX_FLAGS='-fsanitize=address -fsanitize-recover=address'
and this was one of the reported leaks.
pull/593/head
Gleb Mazovetskiy 4 years ago
parent 7b095e8701
commit bd7d5a8f92

@ -630,6 +630,7 @@ namespace Gui
}
MyGUI::ResourceManager::getInstance().loadFromXmlNode(copy, _file, _version);
delete copy;
}
}

Loading…
Cancel
Save