From cff7923be1ea59971f9eee0746be2aa9434ceb44 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sat, 16 Jan 2010 14:49:09 +0100 Subject: 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 --- src/game/GameObject.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/GameObject.cpp') 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(); } -- cgit v1.2.3