aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTeravus Ovares (Dan Olivares)2009-10-16 03:52:57 -0400
committerTeravus Ovares (Dan Olivares)2009-10-16 03:52:57 -0400
commit67afa9e633b6b5c9c8be8f50eeecc5177c05119b (patch)
tree26a95ca1832600c8aa539740310b746e99bf706f
parent* Added a message for when the null reference exception occurs to make debugg... (diff)
downloadopensim-SC_OLD-67afa9e633b6b5c9c8be8f50eeecc5177c05119b.zip
opensim-SC_OLD-67afa9e633b6b5c9c8be8f50eeecc5177c05119b.tar.gz
opensim-SC_OLD-67afa9e633b6b5c9c8be8f50eeecc5177c05119b.tar.bz2
opensim-SC_OLD-67afa9e633b6b5c9c8be8f50eeecc5177c05119b.tar.xz
* Make sure to unregister the OutOfBounds Physics event in RemoveFromPhysicalScene or we'll be leaking
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 96fa467..b468dde 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -908,6 +908,7 @@ namespace OpenSim.Region.Framework.Scenes
908 if (PhysicsActor != null) 908 if (PhysicsActor != null)
909 { 909 {
910 m_physicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients; 910 m_physicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients;
911 m_physicsActor.OnOutOfBounds -= OutOfBoundsCall;
911 m_scene.PhysicsScene.RemoveAvatar(PhysicsActor); 912 m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
912 m_physicsActor.UnSubscribeEvents(); 913 m_physicsActor.UnSubscribeEvents();
913 m_physicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate; 914 m_physicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate;