[Scummvm-cvs-logs] scummvm master -> 3384f4bf827663edd2886ff2e2056430f8a70204

fuzzie fuzzie at fuzzie.org
Tue Jun 28 22:03:09 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3384f4bf82 MOHAWK: Don't leak bitlStream (spotted by clone2727).


Commit: 3384f4bf827663edd2886ff2e2056430f8a70204
    https://github.com/scummvm/scummvm/commit/3384f4bf827663edd2886ff2e2056430f8a70204
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-06-28T13:00:20-07:00

Commit Message:
MOHAWK: Don't leak bitlStream (spotted by clone2727).

Changed paths:
    engines/mohawk/livingbooks.cpp



diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 8df5db7..06500bc 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) {






More information about the Scummvm-git-logs mailing list