Core/SAI: Fixed another memory leak

This commit is contained in:
Shauren
2011-03-27 12:54:11 +02:00
parent d26b18be2a
commit 9fea7d9a85
2 changed files with 10 additions and 2 deletions

View File

@@ -51,7 +51,15 @@ SmartScript::SmartScript()
meOrigGUID = 0;
goOrigGUID = 0;
mResumeActionList = true;
mLastInvoker = NULL;
mLastInvoker = 0;
}
SmartScript::~SmartScript()
{
for (ObjectListMap::iterator itr = mTargetStorage->begin(); itr != mTargetStorage->end(); ++itr)
delete itr->second;
delete mTargetStorage;
}
void SmartScript::OnReset()