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/sequences/sequencer.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/sequences/sequencer.cpp')
-rw-r--r-- | engines/pink/objects/sequences/sequencer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/pink/objects/sequences/sequencer.cpp b/engines/pink/objects/sequences/sequencer.cpp index 8facfe32e9..30048814fb 100644 --- a/engines/pink/objects/sequences/sequencer.cpp +++ b/engines/pink/objects/sequences/sequencer.cpp @@ -40,6 +40,10 @@ Sequencer::~Sequencer() { for (uint i = 0; i < _sequences.size(); ++i) { delete _sequences[i]; } + for (uint i = 0; i < _timers.size(); ++i) { + delete _timers[i]; + } + removeContext(_context); } void Sequencer::deserialize(Archive &archive) { |