MAINT-4009: Patching a leak of keyframed motions that had been deprecated but were never properly destroyed.
parent
8e7912f382
commit
35fe7aaedd
|
|
@ -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();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue