Fix memory leak
This commit is contained in:
parent
0449263b6e
commit
56549f68d4
@ -60,6 +60,13 @@ MaterialManager::~MaterialManager()
|
||||
delete m_materials[i];
|
||||
}
|
||||
m_materials.clear();
|
||||
|
||||
for (std::map<video::E_MATERIAL_TYPE, Material*> ::iterator it =
|
||||
m_default_materials.begin(); it != m_default_materials.end(); it++)
|
||||
{
|
||||
delete it->second;
|
||||
}
|
||||
m_default_materials.clear();
|
||||
} // ~MaterialManager
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -954,9 +954,9 @@ namespace GUIEngine
|
||||
//if (g_skin != NULL) delete g_skin;
|
||||
g_skin = NULL;
|
||||
|
||||
g_ft_env->~FTEnvironment();
|
||||
delete g_ft_env;
|
||||
g_ft_env = NULL;
|
||||
g_gp_creator->~GlyphPageCreator();
|
||||
delete g_gp_creator;
|
||||
g_gp_creator = NULL;
|
||||
|
||||
for (unsigned int i=0; i<g_loaded_screens.size(); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user