Fixed a couple of memory leaks.

This commit is contained in:
Derision
2013-03-18 21:09:23 +00:00
parent d036afee5b
commit 5c9f2c0d50
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -2310,7 +2310,10 @@ bool Merc::AICastSpell(int8 iChance, int32 iSpellTypes) {
//we don't need spam of bots healing themselves
MakeAnyLenString(&gmsg, "Casting %s on %s.", spells[selectedMercSpell.spellid].name, tar->GetCleanName());
if(gmsg)
{
MercGroupSay(this, gmsg);
safe_delete_array(gmsg);
}
}
}