Core/SAI: Fixed another memory leak
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
class SmartScript
|
||||
{
|
||||
public:
|
||||
~SmartScript(){};
|
||||
SmartScript();
|
||||
~SmartScript();
|
||||
|
||||
void OnInitialize(WorldObject* obj, AreaTriggerEntry const* at = NULL);
|
||||
void GetScript();
|
||||
|
||||
Reference in New Issue
Block a user