diff options
author | UbitUmarov | 2012-07-11 08:13:57 +0100 |
---|---|---|
committer | UbitUmarov | 2012-07-11 08:13:57 +0100 |
commit | 84ab4c44628441b32ec7ef0c728d035b5cf40b39 (patch) | |
tree | 097f253fe77d97e3ee2d2a15b3d1d66d7b5d97dc /OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |
parent | stop keeping references to objects on released items (diff) | |
download | opensim-SC-84ab4c44628441b32ec7ef0c728d035b5cf40b39.zip opensim-SC-84ab4c44628441b32ec7ef0c728d035b5cf40b39.tar.gz opensim-SC-84ab4c44628441b32ec7ef0c728d035b5cf40b39.tar.bz2 opensim-SC-84ab4c44628441b32ec7ef0c728d035b5cf40b39.tar.xz |
ubitODE leaks
Diffstat (limited to 'OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs index 6e4e41f..865180f 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |||
@@ -740,6 +740,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
740 | if (Shell != IntPtr.Zero) | 740 | if (Shell != IntPtr.Zero) |
741 | { | 741 | { |
742 | _parent_scene.geom_name_map.Remove(Shell); | 742 | _parent_scene.geom_name_map.Remove(Shell); |
743 | _parent_scene.actor_name_map.Remove(Shell); | ||
743 | _parent_scene.waitForSpaceUnlock(_parent_scene.ActiveSpace); | 744 | _parent_scene.waitForSpaceUnlock(_parent_scene.ActiveSpace); |
744 | d.GeomDestroy(Shell); | 745 | d.GeomDestroy(Shell); |
745 | Shell = IntPtr.Zero; | 746 | Shell = IntPtr.Zero; |
@@ -1188,6 +1189,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1188 | } | 1189 | } |
1189 | else | 1190 | else |
1190 | { | 1191 | { |
1192 | _parent_scene.RemoveCollisionEventReporting(this); | ||
1191 | _parent_scene.RemoveCharacter(this); | 1193 | _parent_scene.RemoveCharacter(this); |
1192 | // destroy avatar capsule and related ODE data | 1194 | // destroy avatar capsule and related ODE data |
1193 | AvatarGeomAndBodyDestroy(); | 1195 | AvatarGeomAndBodyDestroy(); |