diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-01-08 23:42:58 +0200 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-01-08 23:42:58 +0200 |
commit | 3b9b6877a17a019af626c1d429fd7aaec05f40c4 (patch) | |
tree | 02bfe5feaace8a87325da5b94fa1f02048fbc60c /indra/newview | |
parent | 2461a7fe396fe95a043ed1cfc3b0c251d242a2c3 (diff) | |
parent | 4316f1d322bc8e0439780d68442d76b17927247c (diff) |
Merged in lindenlab/viewer-bear
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llcontrolavatar.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llviewerobject.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp index d3fd5813a0..0f02c23cb0 100644 --- a/indra/newview/llcontrolavatar.cpp +++ b/indra/newview/llcontrolavatar.cpp @@ -60,6 +60,8 @@ LLControlAvatar::LLControlAvatar(const LLUUID& id, const LLPCode pcode, LLViewer // virtual LLControlAvatar::~LLControlAvatar() { + // Should already have been unlinked before destruction + llassert(!mRootVolp); } // virtual diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 007adf2a72..ec1095813b 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -3100,6 +3100,7 @@ void LLViewerObject::unlinkControlAvatar() if (mControlAvatar) { mControlAvatar->markForDeath(); + mControlAvatar->mRootVolp = NULL; mControlAvatar = NULL; } } |