BGE: Fixing a memory leaked caused by the character controller (CcdPhysicsController...
authorMitchell Stokes <mogurijin@gmail.com>
Sun, 29 Jul 2012 00:34:18 +0000 (00:34 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Sun, 29 Jul 2012 00:34:18 +0000 (00:34 +0000)
source/gameengine/Physics/Bullet/CcdPhysicsController.cpp

index 497a337ac19e3cd12e9baa1cb2aa990ebca3dc01..ed2b9cfcb0bd4423b7dc7312c6b0a619aca1f777 100644 (file)
@@ -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();