Fix leak of mRoot during LLAvatarAppearance destruction
parent
d0f0d77474
commit
5326e3a206
|
|
@ -305,7 +305,12 @@ LLAvatarAppearance::~LLAvatarAppearance()
|
|||
}
|
||||
}
|
||||
|
||||
if (mRoot) mRoot->removeAllChildren();
|
||||
if (mRoot)
|
||||
{
|
||||
mRoot->removeAllChildren();
|
||||
delete mRoot;
|
||||
mRoot = nullptr;
|
||||
}
|
||||
mJointMap.clear();
|
||||
|
||||
clearSkeleton();
|
||||
|
|
|
|||
Loading…
Reference in New Issue