diff options
author | Alyssa Milburn | 2011-06-28 22:00:20 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-06-28 22:00:20 +0200 |
commit | 3384f4bf827663edd2886ff2e2056430f8a70204 (patch) | |
tree | 8e74f3c7a93936fc4b50526a30c12cfca5ca5b46 | |
parent | 2e81e05a12600056cb34a6318f524c1a86c7145c (diff) | |
download | scummvm-rg350-3384f4bf827663edd2886ff2e2056430f8a70204.tar.gz scummvm-rg350-3384f4bf827663edd2886ff2e2056430f8a70204.tar.bz2 scummvm-rg350-3384f4bf827663edd2886ff2e2056430f8a70204.zip |
MOHAWK: Don't leak bitlStream (spotted by clone2727).
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 2 |
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) { |