aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects')
-rw-r--r--engines/pink/objects/pages/game_page.cpp1
-rw-r--r--engines/pink/objects/sequences/sequencer.cpp4
-rw-r--r--engines/pink/objects/walk/walk_mgr.cpp6
-rw-r--r--engines/pink/objects/walk/walk_mgr.h1
4 files changed, 12 insertions, 0 deletions
diff --git a/engines/pink/objects/pages/game_page.cpp b/engines/pink/objects/pages/game_page.cpp
index 5bd420c442..e0d5de1c3c 100644
--- a/engines/pink/objects/pages/game_page.cpp
+++ b/engines/pink/objects/pages/game_page.cpp
@@ -36,6 +36,7 @@ GamePage::GamePage()
GamePage::~GamePage() {
clear();
+ delete _memFile;
}
void GamePage::toConsole() {
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) {
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);
diff --git a/engines/pink/objects/walk/walk_mgr.h b/engines/pink/objects/walk/walk_mgr.h
index cb6b68c31c..a836bfc522 100644
--- a/engines/pink/objects/walk/walk_mgr.h
+++ b/engines/pink/objects/walk/walk_mgr.h
@@ -42,6 +42,7 @@ struct Coordinates {
class WalkMgr : public Object {
public:
WalkMgr();
+ ~WalkMgr() override;
virtual void deserialize(Archive &archive);
void toConsole() override;