Skip to content

Commit

Permalink
Fix memory leak, leaking a single script.
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-at-wow committed Feb 12, 2024
1 parent 9809df5 commit dcbbffd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/game/AI/ScriptDevAI/scripts/kalimdor/silithus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ UnitAI* GetAI_npc_solenor(Creature* pCreature)
void AddSC_silithus()
{
Script* pNewScript = new Script;
pNewScript = new Script;
pNewScript->Name = "npc_solenor"; // npc_solenor_the_slayer
pNewScript->GetAI = &GetAI_npc_solenor;
pNewScript->pGossipHello = &GossipHello_npc_solenor;
Expand Down

0 comments on commit dcbbffd

Please sign in to comment.