aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerobjectlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerobjectlist.cpp')
-rw-r--r--linden/indra/newview/llviewerobjectlist.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerobjectlist.cpp b/linden/indra/newview/llviewerobjectlist.cpp
index bd8ed97..dec7ced 100644
--- a/linden/indra/newview/llviewerobjectlist.cpp
+++ b/linden/indra/newview/llviewerobjectlist.cpp
@@ -859,6 +859,10 @@ void LLViewerObjectList::killObjects(LLViewerRegion *regionp)
859 if (objectp->mRegionp == regionp) 859 if (objectp->mRegionp == regionp)
860 { 860 {
861 killObject(objectp); 861 killObject(objectp);
862
863 // invalidate region pointer. region will become invalid, but
864 // refcounted objects may survive the cleanDeadObjects() call below
865 objectp->mRegionp = NULL;
862 } 866 }
863 } 867 }
864 868