aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/graphics.cpp
diff options
context:
space:
mode:
authorDavid Turner2010-11-09 11:02:06 +0000
committerDavid Turner2010-11-09 11:02:06 +0000
commit63d023964e1523d88463602a7b556e2c8fbe0799 (patch)
tree4b0c290fa42c6d25737b8b4c79e106cba737d551 /engines/mohawk/graphics.cpp
parent77a636aaec30f1e1e9f69038dbd397e9bb23dedf (diff)
downloadscummvm-rg350-63d023964e1523d88463602a7b556e2c8fbe0799.tar.gz
scummvm-rg350-63d023964e1523d88463602a7b556e2c8fbe0799.tar.bz2
scummvm-rg350-63d023964e1523d88463602a7b556e2c8fbe0799.zip
MOHAWK: Close a number of memory leaks in Myst.
These corrections close a number of leaks reported by running Valgrind with --leak-check=full option, but some still remain, mainly in the image loading and caching. svn-id: r54152
Diffstat (limited to 'engines/mohawk/graphics.cpp')
-rw-r--r--engines/mohawk/graphics.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/graphics.cpp b/engines/mohawk/graphics.cpp
index f472a9d721..a2fb8e3f0c 100644
--- a/engines/mohawk/graphics.cpp
+++ b/engines/mohawk/graphics.cpp
@@ -92,6 +92,7 @@ MystGraphics::~MystGraphics() {
delete _bmpDecoder;
delete _jpegDecoder;
delete _pictDecoder;
+ delete[] _pictureFile.entries;
}
static const char* picFileNames[] = {