MAINT-4009: Patching a leak of keyframed motions that had been deprecated but were never properly destroyed.

master
Stinson Linden 2014-05-12 21:34:30 +01:00
parent 8e7912f382
commit 35fe7aaedd
1 changed files with 7 additions and 0 deletions

View File

@ -172,6 +172,13 @@ void LLMotionController::deleteAllMotions()
for_each(mAllMotions.begin(), mAllMotions.end(), DeletePairedPointer());
mAllMotions.clear();
// stinson 05/12/20014 : Ownership of the LLMotion pointers is transferred from
// mAllMotions to mDeprecatedMotions in method
// LLMotionController::deprecateMotionInstance(). Thus, we should also clean
// up the mDeprecatedMotions list as well.
for_each(mDeprecatedMotions.begin(), mDeprecatedMotions.end(), DeletePointer());
mDeprecatedMotions.clear();
}
//-----------------------------------------------------------------------------