From 3384f4bf827663edd2886ff2e2056430f8a70204 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Tue, 28 Jun 2011 22:00:20 +0200 Subject: [PATCH] MOHAWK: Don't leak bitlStream (spotted by clone2727). --- engines/mohawk/livingbooks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 8df5db720c8f..06500bc72513 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) {