Fix leak of mRoot during LLAvatarAppearance destruction

master
Rye Mutt 2022-10-19 22:17:34 -04:00
parent d0f0d77474
commit 5326e3a206
1 changed files with 6 additions and 1 deletions

View File

@ -305,7 +305,12 @@ LLAvatarAppearance::~LLAvatarAppearance()
}
}
if (mRoot) mRoot->removeAllChildren();
if (mRoot)
{
mRoot->removeAllChildren();
delete mRoot;
mRoot = nullptr;
}
mJointMap.clear();
clearSkeleton();