aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiscover- <amort11@hotmail.com>2013-12-19 10:50:16 +0100
committerDiscover- <amort11@hotmail.com>2013-12-19 10:50:16 +0100
commitc5788de8a43a820e76c5b4a1adcba67e1f71af70 (patch)
treeb3d51eaf6c659891b8a97de231ee60109173effc /src
parente44e932d4dd56d76ef36e332b3e55cab4e4219c6 (diff)
Core/SAI: Fix another memory leak, thanks to @Xter
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index 21539584cd6..44da73482a7 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -394,6 +394,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
(*itr)->ToCreature()->SetReactState(ReactStates(e.action.react.state));
}
+ delete targets;
break;
}
case SMART_ACTION_RANDOM_EMOTE: