aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorMatthew Hoops2010-01-19 05:08:53 +0000
committerMatthew Hoops2010-01-19 05:08:53 +0000
commit2d776186f6755b3130f86036ef70aa2be821487c (patch)
tree23cd522d2ea882e310b7d817bda2f6944a19a046 /engines/mohawk
parentc20df070f35557a8de5fbd3475ee5579abc584bf (diff)
downloadscummvm-rg350-2d776186f6755b3130f86036ef70aa2be821487c.tar.gz
scummvm-rg350-2d776186f6755b3130f86036ef70aa2be821487c.tar.bz2
scummvm-rg350-2d776186f6755b3130f86036ef70aa2be821487c.zip
Missed copying a line from console.cpp; fixes a memory leak.
svn-id: r47372
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/riven.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index 7cb69b95e1..4d9c82d68f 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -540,6 +540,7 @@ uint32 MohawkEngine_Riven::getCurCardRMAP() {
Common::SeekableReadStream *rmapStream = getRawData(ID_RMAP, 1);
rmapStream->seek(_curCard * 4);
uint32 rmapCode = rmapStream->readUint32BE();
+ delete rmapStream;
return rmapCode;
}