Memory leak; delete mDeprecatedMotions.
parent
639b00dc27
commit
399cb60d4d
|
|
@ -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>
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue