diff --git a/indra/llcharacter/llmotioncontroller.cpp b/indra/llcharacter/llmotioncontroller.cpp index e9fb91ad73..a859fe85f1 100755 --- a/indra/llcharacter/llmotioncontroller.cpp +++ b/indra/llcharacter/llmotioncontroller.cpp @@ -171,6 +171,11 @@ void LLMotionController::deleteAllMotions() for_each(mAllMotions.begin(), mAllMotions.end(), DeletePairedPointer()); mAllMotions.clear(); + + // There might still be motions in mDeprecatedMotions. Don't leak those. + for_each(mDeprecatedMotions.begin(), mDeprecatedMotions.end(), DeletePointer() ); + mDeprecatedMotions.clear(); + // } //-----------------------------------------------------------------------------