Skip to content
Snippets Groups Projects
Commit 3b9b6877 authored by AndreyL ProductEngine's avatar AndreyL ProductEngine
Browse files

Merged in lindenlab/viewer-bear

parents 2461a7fe 4316f1d3
Branches
Tags
No related merge requests found
...@@ -60,6 +60,8 @@ LLControlAvatar::LLControlAvatar(const LLUUID& id, const LLPCode pcode, LLViewer ...@@ -60,6 +60,8 @@ LLControlAvatar::LLControlAvatar(const LLUUID& id, const LLPCode pcode, LLViewer
// virtual // virtual
LLControlAvatar::~LLControlAvatar() LLControlAvatar::~LLControlAvatar()
{ {
// Should already have been unlinked before destruction
llassert(!mRootVolp);
} }
// virtual // virtual
......
...@@ -3100,6 +3100,7 @@ void LLViewerObject::unlinkControlAvatar() ...@@ -3100,6 +3100,7 @@ void LLViewerObject::unlinkControlAvatar()
if (mControlAvatar) if (mControlAvatar)
{ {
mControlAvatar->markForDeath(); mControlAvatar->markForDeath();
mControlAvatar->mRootVolp = NULL;
mControlAvatar = NULL; mControlAvatar = NULL;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment