Memory leak; delete mDeprecatedMotions.

master
Nicky 2013-08-18 20:35:07 +02:00
parent 639b00dc27
commit 399cb60d4d
1 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,11 @@ void LLMotionController::deleteAllMotions()
for_each(mAllMotions.begin(), mAllMotions.end(), DeletePairedPointer());
mAllMotions.clear();
// <FS:ND> There might still be motions in mDeprecatedMotions. Don't leak those.
for_each(mDeprecatedMotions.begin(), mDeprecatedMotions.end(), DeletePointer() );
mDeprecatedMotions.clear();
// </FS:ND>
}
//-----------------------------------------------------------------------------