BGE: Fixing a memory leaked caused by the character controller (CcdPhysicsController::m_characterController was not getting freed).
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user