mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-10 10:12:24 +00:00
Fix memleak in Mob::TemporaryPets
This commit is contained in:
parent
6897aef4b5
commit
09d76605f5
@ -606,6 +606,9 @@ void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, u
|
|||||||
//the target of these swarm pets will take offense to being cast on...
|
//the target of these swarm pets will take offense to being cast on...
|
||||||
if(targ != nullptr)
|
if(targ != nullptr)
|
||||||
targ->AddToHateList(this, 1, 0);
|
targ->AddToHateList(this, 1, 0);
|
||||||
|
|
||||||
|
// The other pointers we make are handled elsewhere.
|
||||||
|
delete made_npc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mob::TypesTemporaryPets(uint32 typesid, Mob *targ, const char *name_override, uint32 duration_override, bool followme, bool sticktarg) {
|
void Mob::TypesTemporaryPets(uint32 typesid, Mob *targ, const char *name_override, uint32 duration_override, bool followme, bool sticktarg) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user