Blender Git Loki
Git Commits -> Revision 60c8c13
Revision 60c8c13 by Mitchell Stokes (master) May 1, 2014, 01:53 (GMT) |
BGE cleanup: KX_GameObject::GetParent() no longer increases the object's refcount. I'm not sure why this function ever increased the object's refcount. Any place in the code that calls KX_GameObject::GetParent() has to turn around and call parent->Release(). Forgetting to call Release() was a common cause of memory leaks (in fact, KX_SteeringActuator was probably leaking). If the refcount needs to be increased, the calling code can handle calling AddRef(). |
Commit Details:
Full Hash: 60c8c130fed60dc1fe5387b960549385188feadf
Parent Commit: 8d42e7b
Lines Changed: +0, -28
8 Modified Paths:
/source/gameengine/Ketsji/KX_ConstraintActuator.cpp (+0, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+0, -4) (Diff)
/source/gameengine/Ketsji/KX_RaySensor.cpp (+0, -3) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+0, -5) (Diff)
/source/gameengine/Ketsji/KX_TouchSensor.cpp (+0, -4) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.cpp (+0, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+0, -7) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp (+0, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+0, -4) (Diff)
/source/gameengine/Ketsji/KX_RaySensor.cpp (+0, -3) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+0, -5) (Diff)
/source/gameengine/Ketsji/KX_TouchSensor.cpp (+0, -4) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.cpp (+0, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+0, -7) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp (+0, -2) (Diff)