From e7faef7e76edd84ccdf75139ef78a697db28ad04 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Thu, 13 May 2010 00:52:04 +0200 Subject: Fix a memleak in AddSC_borean_tundra(). Log: ==31592== 312 bytes in 1 blocks are definitely lost in loss record 423 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xFC12AF: AddSC_borean_tundra() (borean_tundra.cpp:2408) ==31592== by 0xDC0BF0: AddScripts() (ScriptLoader.cpp:917) ==31592== by 0xC183F3: ScriptMgr::ScriptsInit() (ScriptMgr.cpp:70) ==31592== by 0xD1B75F: World::SetInitialWorldSettings() (World.cpp:1608) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) --HG-- branch : trunk --- src/scripts/northrend/borean_tundra.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/scripts/northrend/borean_tundra.cpp b/src/scripts/northrend/borean_tundra.cpp index e57e00f5554..074726ccb9e 100644 --- a/src/scripts/northrend/borean_tundra.cpp +++ b/src/scripts/northrend/borean_tundra.cpp @@ -2405,7 +2405,6 @@ void AddSC_borean_tundra() newscript->Name = "npc_nesingwary_trapper"; newscript->GetAI = &GetAI_npc_nesingwary_trapper; newscript->RegisterSelf(); - newscript = new Script; newscript = new Script; newscript->Name = "npc_lurgglbr"; -- cgit v1.2.3