mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
memory leak fix
This commit is contained in:
parent
fa14df62b7
commit
638df221a6
@ -146,6 +146,7 @@ void AiSequence::execute (const MWWorld::Ptr& actor,float duration)
|
||||
// target disappeared (e.g. summoned creatures)
|
||||
if (target.isEmpty())
|
||||
{
|
||||
delete *it;
|
||||
mPackages.erase(it++);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user