memleak fix

This commit is contained in:
Azaezel 2016-06-19 16:59:16 -05:00
parent 2b57bed899
commit 2237a13679

View file

@ -111,6 +111,11 @@ LevelInfo::LevelInfo()
LevelInfo::~LevelInfo()
{
LightManager::smActivateSignal.remove(this, &LevelInfo::_onLMActivate);
if (!mAccuTexture.isNull())
{
mAccuTexture.free();
gLevelAccuMap.free();
}
}
//-----------------------------------------------------------------------------