mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
memleak fix
This commit is contained in:
parent
2b57bed899
commit
2237a13679
1 changed files with 5 additions and 0 deletions
|
|
@ -111,6 +111,11 @@ LevelInfo::LevelInfo()
|
||||||
LevelInfo::~LevelInfo()
|
LevelInfo::~LevelInfo()
|
||||||
{
|
{
|
||||||
LightManager::smActivateSignal.remove(this, &LevelInfo::_onLMActivate);
|
LightManager::smActivateSignal.remove(this, &LevelInfo::_onLMActivate);
|
||||||
|
if (!mAccuTexture.isNull())
|
||||||
|
{
|
||||||
|
mAccuTexture.free();
|
||||||
|
gLevelAccuMap.free();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue