Skip to content

Commit

Permalink
MOHAWK: Don't leak bitlStream (spotted by clone2727).
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzie committed Jun 28, 2011
1 parent 2e81e05 commit 3384f4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/mohawk/livingbooks.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 3384f4b

Please sign in to comment.