aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/dm/dm.cpp4
-rw-r--r--engines/dm/gfx.cpp3
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index 61e68dfaa7..24ebfbfff6 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -86,6 +86,10 @@ Common::Error DMEngine::run() {
_displayMan->updateScreen();
}
+
+ delete[] buffer;
+ delete[] cleanByteImg0Data;
+
return Common::kNoError;
}
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp
index 53abbbfc76..577251cf21 100644
--- a/engines/dm/gfx.cpp
+++ b/engines/dm/gfx.cpp
@@ -15,10 +15,11 @@ DisplayMan::~DisplayMan() {
delete[] _compressedData;
delete[] _indexBytePos;
delete[] _currPalette;
+ delete[] _vgaBuffer;
}
void DisplayMan::setUpScreens(uint16 width, uint16 height) {
- _currPalette = new byte[256 * 2];
+ _currPalette = new byte[256 * 3];
_screenWidth = width;
_screenHeight = height;
_vgaBuffer = new byte[_screenWidth * _screenHeight];