aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorAlyssa Milburn2011-06-28 22:00:20 +0200
committerAlyssa Milburn2011-06-28 22:00:20 +0200
commit3384f4bf827663edd2886ff2e2056430f8a70204 (patch)
tree8e74f3c7a93936fc4b50526a30c12cfca5ca5b46 /engines/mohawk
parent2e81e05a12600056cb34a6318f524c1a86c7145c (diff)
downloadscummvm-rg350-3384f4bf827663edd2886ff2e2056430f8a70204.tar.gz
scummvm-rg350-3384f4bf827663edd2886ff2e2056430f8a70204.tar.bz2
scummvm-rg350-3384f4bf827663edd2886ff2e2056430f8a70204.zip
MOHAWK: Don't leak bitlStream (spotted by clone2727).
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 8df5db720c..06500bc725 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -768,6 +768,8 @@ void LBPage::loadBITL(uint16 resourceId) {
if (bitlStream->size() == bitlStream->pos())
break;
}
+
+ delete bitlStream;
}
Common::SeekableSubReadStreamEndian *MohawkEngine_LivingBooks::wrapStreamEndian(uint32 tag, uint16 id) {