mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
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
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user