aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
authorWinterGrascph2016-05-04 11:16:41 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commitb7987d84c1de7c7f6c40b9995026009058d43ab3 (patch)
tree50b252561e70d54dbc1ea5076e9a8d64f47f80cd /engines/dm/dm.cpp
parentcdf377f7a7a43521403c38014bb1406b1ce15721 (diff)
downloadscummvm-rg350-b7987d84c1de7c7f6c40b9995026009058d43ab3.tar.gz
scummvm-rg350-b7987d84c1de7c7f6c40b9995026009058d43ab3.tar.bz2
scummvm-rg350-b7987d84c1de7c7f6c40b9995026009058d43ab3.zip
DM: Fix memory leak in dm.cpp and gfx.cpp
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp4
1 files changed, 4 insertions, 0 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;
}