SL-10285 - removed one possible route for the isImpostor() crash. Intermittent issue.

meow-7.2.2
Brad Payne (Vir Linden) 2019-01-08 21:28:47 +00:00
parent 949ff8f5c4
commit 16a3d569af
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -3182,6 +3182,7 @@ void LLViewerObject::unlinkControlAvatar()
if (mControlAvatar)
{
mControlAvatar->markForDeath();
mControlAvatar->mRootVolp = NULL;
mControlAvatar = NULL;
}
}