From 0659ca4846d6b7eade11628e35c6dad6bf876e49 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Sun, 10 Jun 2018 04:21:01 +0300 Subject: PINK: fix mem leaks --- engines/pink/objects/sequences/sequencer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/pink/objects/sequences/sequencer.cpp') 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) { -- cgit v1.2.3