Committing Avination's memleak fix-a-thon, installment #3

When linking, detach the no longer used SOG's from backup so they can be
collected. Since their Children collection is never emptied, they prevent
their former SOPs from being collected as well.
0.7.3-extended
Melanie 2012-07-23 19:53:26 +01:00 committed by Justin Clark-Casey (justincc)
parent ed962bb3d3
commit 91ae1908fe
1 changed files with 2 additions and 0 deletions

View File

@ -1656,6 +1656,8 @@ namespace OpenSim.Region.Framework.Scenes
{ {
parentGroup.LinkToGroup(child); parentGroup.LinkToGroup(child);
child.DetachFromBackup();
// this is here so physics gets updated! // this is here so physics gets updated!
// Don't remove! Bad juju! Stay away! or fix physics! // Don't remove! Bad juju! Stay away! or fix physics!
child.AbsolutePosition = child.AbsolutePosition; child.AbsolutePosition = child.AbsolutePosition;