mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 22:06:45 +00:00
Catch MyGUI exceptions in the FontLoader destructor
This commit is contained in:
parent
808c905e1f
commit
6357bc3dad
1 changed files with 8 additions and 1 deletions
|
@ -165,7 +165,14 @@ namespace Gui
|
||||||
|
|
||||||
FontLoader::~FontLoader()
|
FontLoader::~FontLoader()
|
||||||
{
|
{
|
||||||
MyGUI::ResourceManager::getInstance().unregisterLoadXmlDelegate("Resource");
|
try
|
||||||
|
{
|
||||||
|
MyGUI::ResourceManager::getInstance().unregisterLoadXmlDelegate("Resource");
|
||||||
|
}
|
||||||
|
catch(const MyGUI::Exception& e)
|
||||||
|
{
|
||||||
|
Log(Debug::Error) << "Error in the FontLoader destructor: " << e.what();
|
||||||
|
}
|
||||||
|
|
||||||
for (std::vector<MyGUI::ITexture*>::iterator it = mTextures.begin(); it != mTextures.end(); ++it)
|
for (std::vector<MyGUI::ITexture*>::iterator it = mTextures.begin(); it != mTextures.end(); ++it)
|
||||||
delete *it;
|
delete *it;
|
||||||
|
|
Loading…
Reference in a new issue