Crahfix for avatars, as destruction can be delayed via llpointer refs, meaning the region the av was in could be long gone before the avs destructor is actually called. Calling logPendingPhases in a more reasonable place (markDead).

This commit is contained in:
Shyotl
2013-02-25 12:55:50 -06:00
parent 94a0040ddb
commit 34cf0329ab

View File

@@ -1120,7 +1120,7 @@ LLVOAvatar::~LLVOAvatar()
}
}
logPendingPhases();
//logPendingPhases();
lldebugs << "LLVOAvatar Destructor (0x" << this << ") id:" << mID << llendl;
@@ -1156,7 +1156,12 @@ void LLVOAvatar::markDead()
}
mVoiceVisualizer->markDead();
LLLoadedCallbackEntry::cleanUpCallbackList(&mCallbackTextureList) ;
if(!isDead())
logPendingPhases();
LLViewerObject::markDead();
}