diff options
author | Nicholaz Beresford | 2008-09-17 02:16:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-17 02:16:50 -0500 |
commit | bd0eb5fde3c408c6e66a80101c38edd605528380 (patch) | |
tree | c3dd69b8b0b57f0bdea27ff7f590ec23d6cf4012 /linden/indra/newview/llviewerobjectlist.cpp | |
parent | Created ChangeLog.txt. (diff) | |
download | meta-impy-bd0eb5fde3c408c6e66a80101c38edd605528380.zip meta-impy-bd0eb5fde3c408c6e66a80101c38edd605528380.tar.gz meta-impy-bd0eb5fde3c408c6e66a80101c38edd605528380.tar.bz2 meta-impy-bd0eb5fde3c408c6e66a80101c38edd605528380.tar.xz |
VWR-2683: Possible crash accessing dead llviewerregion.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerobjectlist.cpp | 4 |
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 | ||