diff options
-rw-r--r-- | engines/hdb/file-manager.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/gfx.cpp | 7 | ||||
-rw-r--r-- | engines/hdb/map.cpp | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp index 295999a787..d75c1121ad 100644 --- a/engines/hdb/file-manager.cpp +++ b/engines/hdb/file-manager.cpp @@ -29,6 +29,8 @@ namespace HDB { FileMan::FileMan() { _mpcFile = new Common::File; + for (uint i = 0; i < _dir.size(); i++) + delete _dir[i]; } FileMan::~FileMan() { diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 8c7cb052b4..94c46bddf8 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -52,6 +52,13 @@ Gfx::~Gfx() { for (int i = 0; i < _fontHeader.numChars; i++) _fontSurfaces[i].free(); _globalSurface.free(); + delete[] _tLookupArray; + for (int i = 0; i < 8; i++) + delete _mousePointer[i]; + for (int i = 0; i < 4; i++) + delete _starField[i]; + delete _snowflake; + delete _skyClouds; } bool Gfx::init() { diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index e1d21c4f0c..ca8e2a2205 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -41,6 +41,10 @@ Map::Map() { } Map::~Map() { + delete[] _background; + delete[] _foreground; + delete[] _iconList; + free(_mapExplosions); free(_mapExpBarrels); free(_mapLaserBeams); |