[Scummvm-git-logs] scummvm master -> b940fb75888666a31dae1f04aef16ffef1e8554e
digitall
dgturner at iee.org
Fri Sep 13 22:54:02 CEST 2019
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:
b940fb7588 HDB: Fix Major Memory Leak in File Manager Class
Commit: b940fb75888666a31dae1f04aef16ffef1e8554e
https://github.com/scummvm/scummvm/commit/b940fb75888666a31dae1f04aef16ffef1e8554e
Author: D G Turner (digitall at scummvm.org)
Date: 2019-09-13T21:50:55+01:00
Commit Message:
HDB: Fix Major Memory Leak in File Manager Class
Changed paths:
engines/hdb/file-manager.cpp
diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp
index 9c2eca1..31acc2d 100644
--- a/engines/hdb/file-manager.cpp
+++ b/engines/hdb/file-manager.cpp
@@ -135,7 +135,7 @@ Common::SeekableReadStream *FileMan::findFirstData(const char *string, DataType
// Return buffer wrapped in a MemoryReadStream, automatically
// uncompressed if it is zlib-compressed
- return Common::wrapCompressedReadStream(new Common::MemoryReadStream(buffer, file->length, DisposeAfterUse::NO), file->length);
+ return Common::wrapCompressedReadStream(new Common::MemoryReadStream(buffer, file->length, DisposeAfterUse::YES), file->length);
}
int32 FileMan::getLength(const char *string, DataType type) {
More information about the Scummvm-git-logs
mailing list