Skip to content
Snippets Groups Projects
Commit 35fe7aae authored by Stinson Linden's avatar Stinson Linden
Browse files

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

MAINT-4009: Patching a leak of keyframed motions that had been deprecated but were never properly destroyed.
parent 8e7912f3
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
//-----------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment