diff options
author | whiterandrek | 2018-06-10 04:21:01 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 0659ca4846d6b7eade11628e35c6dad6bf876e49 (patch) | |
tree | 48d2952620940c78644ce180dad81c7ac98f7467 /engines/pink/objects/walk/walk_mgr.cpp | |
parent | f11d3311296aa3afd8f54e4458cb900fdf417782 (diff) | |
download | scummvm-rg350-0659ca4846d6b7eade11628e35c6dad6bf876e49.tar.gz scummvm-rg350-0659ca4846d6b7eade11628e35c6dad6bf876e49.tar.bz2 scummvm-rg350-0659ca4846d6b7eade11628e35c6dad6bf876e49.zip |
PINK: fix mem leaks
Diffstat (limited to 'engines/pink/objects/walk/walk_mgr.cpp')
-rw-r--r-- | engines/pink/objects/walk/walk_mgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/pink/objects/walk/walk_mgr.cpp b/engines/pink/objects/walk/walk_mgr.cpp index c7c06ec474..1336991aba 100644 --- a/engines/pink/objects/walk/walk_mgr.cpp +++ b/engines/pink/objects/walk/walk_mgr.cpp @@ -32,6 +32,12 @@ namespace Pink { WalkMgr::WalkMgr() : _isWalking(false), _leadActor(nullptr) {} +WalkMgr::~WalkMgr() { + for (uint i = 0; i < _locations.size(); ++i) { + delete _locations[i]; + } +} + void WalkMgr::deserialize(Pink::Archive &archive) { _leadActor = static_cast<LeadActor *>(archive.readObject()); _locations.deserialize(archive); |