diff options
author | Anubisss <none@none> | 2010-01-16 14:49:09 +0100 |
---|---|---|
committer | Anubisss <none@none> | 2010-01-16 14:49:09 +0100 |
commit | cff7923be1ea59971f9eee0746be2aa9434ceb44 (patch) | |
tree | d60dc9c8de168219019cfa33bc28fcee16ae37a1 /src | |
parent | 7b4922172b9dea4c6fd7c70f1a608d4ca8b1a119 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/game/GameObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 497e4a6fe77..abfb1220e27 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -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(); } |