BGE: Fixing a memory leaked caused by the character controller (CcdPhysicsController::m_characterController was not getting freed).

This commit is contained in:
Mitchell Stokes
2012-07-29 00:34:18 +00:00
parent e32c60284a
commit f5d643e950

View 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();