diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-07-29 04:34:18 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-07-29 04:34:18 +0400 |
commit | f5d643e950892760d7c82aaee8a7e31bba8a8359 (patch) | |
tree | 82016455306a068f595300464cefca86844d7877 /source | |
parent | e32c60284aa843165ec980c4f7dfabe42d5ff6ee (diff) |
BGE: Fixing a memory leaked caused by the character controller (CcdPhysicsController::m_characterController was not getting freed).
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp index 497a337ac19..ed2b9cfcb0b 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp @@ -632,6 +632,8 @@ CcdPhysicsController::~CcdPhysicsController() delete m_MotionState; if (m_bulletMotionState) delete m_bulletMotionState; + if (m_characterController) + delete m_characterController; delete m_object; DeleteControllerShape(); |