aboutsummaryrefslogtreecommitdiff
path: root/src/game/ScriptMgr.cpp
diff options
context:
space:
mode:
authorAnubisss <none@none>2010-05-13 00:42:37 +0200
committerAnubisss <none@none>2010-05-13 00:42:37 +0200
commitcdb7b3227b0c021806d4edd16e26b6f8355dc2e2 (patch)
treea987002aa4a5a1c179f59d318f4b393b3cb47e28 /src/game/ScriptMgr.cpp
parent5d70f62c07752f2b97eff1f8827316b366c61b7e (diff)
Call WaypointMgr's Free() in its destructor.
Deallocate memory in Free() which allocated by WaypointMgr. This fixes memory leaks caused by waypoints. Valgrind log: ==31592== 2,203,488 (59,400 direct, 2,144,088 indirect) bytes in 2,475 blocks are definitely lost in loss record 1,230 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xD0EC23: WaypointStore::Load() (WaypointManager.cpp:70) ==31592== by 0xD1B55D: World::SetInitialWorldSettings() (World.cpp:1565) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 160 bytes in 5 blocks are possibly lost in loss record 10 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xD0EC0D: WaypointStore::Load() (WaypointManager.cpp:67) ==31592== by 0xD1B55D: World::SetInitialWorldSettings() (World.cpp:1565) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) ==31592== ==31592== ==31592== 384 bytes in 2 blocks are possibly lost in loss record 285 of 1,232 ==31592== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==31592== by 0xD0F2D4: __gnu_cxx::new_allocator<WaypointData*>::allocate(unsigned long, void const*) (new_allocator.h:92) ==31592== by 0xD0F303: std::_Vector_base<WaypointData*, std::allocator<WaypointData*> >::_M_allocate(unsigned long) (stl_vector.h:144) ==31592== by 0xD0F87B: std::vector<WaypointData*, std::allocator<WaypointData*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<WaypointData**, std::vector<WaypointData*, std::allocator<WaypointData*> > >, WaypointData* const&) (vector.tcc:308) ==31592== by 0xD0F9F7: std::vector<WaypointData*, std::allocator<WaypointData*> >::push_back(WaypointData* const&) (stl_vector.h:694) ==31592== by 0xD0ED0B: WaypointStore::Load() (WaypointManager.cpp:89) ==31592== by 0xD1B55D: World::SetInitialWorldSettings() (World.cpp:1565) ==31592== by 0x90F34E: Master::Run() (Master.cpp:234) ==31592== by 0x90E87E: main (Main.cpp:146) --HG-- branch : trunk
Diffstat (limited to 'src/game/ScriptMgr.cpp')
0 files changed, 0 insertions, 0 deletions