Reverse the order of physics event unsubscription to allow GC. Adapted from Unit's reverted patch
parent
1183310a05
commit
b5b21013da
|
@ -1065,9 +1065,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
// PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients;
|
// PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients;
|
||||||
PhysicsActor.OnOutOfBounds -= OutOfBoundsCall;
|
PhysicsActor.OnOutOfBounds -= OutOfBoundsCall;
|
||||||
m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
|
|
||||||
PhysicsActor.UnSubscribeEvents();
|
|
||||||
PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate;
|
PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate;
|
||||||
|
PhysicsActor.UnSubscribeEvents();
|
||||||
|
m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
|
||||||
PhysicsActor = null;
|
PhysicsActor = null;
|
||||||
}
|
}
|
||||||
// else
|
// else
|
||||||
|
|
Loading…
Reference in New Issue