aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/file-manager.cpp4
-rw-r--r--engines/hdb/file-manager.h1
-rw-r--r--engines/hdb/gfx.cpp2
-rw-r--r--engines/hdb/map.cpp3
4 files changed, 10 insertions, 0 deletions
diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp
index 0bc22fbb62..e58838d53d 100644
--- a/engines/hdb/file-manager.cpp
+++ b/engines/hdb/file-manager.cpp
@@ -31,6 +31,10 @@ FileMan::FileMan() {
_mpcFile = new Common::File;
}
+FileMan::~FileMan() {
+ delete _mpcFile;
+}
+
bool FileMan::openMPC(const Common::String &filename) {
uint32 offset;
diff --git a/engines/hdb/file-manager.h b/engines/hdb/file-manager.h
index 740bf4d1b6..a83512eed7 100644
--- a/engines/hdb/file-manager.h
+++ b/engines/hdb/file-manager.h
@@ -64,6 +64,7 @@ private:
public:
FileMan();
+ ~FileMan();
struct {
uint32 id;
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index b497b53b05..54746c39d1 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -45,6 +45,8 @@ Gfx::~Gfx() {
for (uint i = 0; i < _gfxCache->size(); i++)
delete _gfxCache->operator[](i);
delete _gfxCache;
+ for (uint i = 0; i < _charInfoBlocks.size(); i++)
+ delete _charInfoBlocks[i];
delete _sines;
delete _cosines;
for (int i = 0; i < _fontHeader.numChars; i++)
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp
index a17b0db1f1..66fc9ab570 100644
--- a/engines/hdb/map.cpp
+++ b/engines/hdb/map.cpp
@@ -41,6 +41,9 @@ Map::Map() {
}
Map::~Map() {
+ free(_mapExplosions);
+ free(_mapExpBarrels);
+ free(_mapLaserBeams);
}
void Map::save(Common::OutSaveFile *out) {