From dcbbffd90531e393ecd1c7fb3b7a7baaab95b895 Mon Sep 17 00:00:00 2001 From: evil-at-wow Date: Mon, 12 Feb 2024 22:31:16 +0100 Subject: [PATCH] Fix memory leak, leaking a single script. --- src/game/AI/ScriptDevAI/scripts/kalimdor/silithus.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/game/AI/ScriptDevAI/scripts/kalimdor/silithus.cpp b/src/game/AI/ScriptDevAI/scripts/kalimdor/silithus.cpp index 44de24e739..af6eb01308 100644 --- a/src/game/AI/ScriptDevAI/scripts/kalimdor/silithus.cpp +++ b/src/game/AI/ScriptDevAI/scripts/kalimdor/silithus.cpp @@ -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;