mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Fix a meam leak in GameObject's destructor.
main part of my log: ==19804== 584 bytes in 73 blocks are definitely lost in loss record 107 of 298 ==19804== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230) ==19804== by 0x930A2B: GameObject::GameObject() (GameObject.cpp:43) --HG-- branch : trunk
This commit is contained in:
@@ -66,6 +66,7 @@ GameObject::GameObject() : WorldObject(), m_goValue(new GameObjectValue)
|
||||
|
||||
GameObject::~GameObject()
|
||||
{
|
||||
delete m_goValue;
|
||||
//if(m_uint32Values) // field array can be not exist if GameOBject not loaded
|
||||
// CleanupsBeforeDelete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user