[Scummvm-git-logs] scummvm master -> 784eb48676a548ef5bf54c28e52fb2762a015de8

sdelamarre noreply at scummvm.org
Sun Aug 27 11:51:52 UTC 2023


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:
784eb48676 GOB: Fix a recently introduced memory leak


Commit: 784eb48676a548ef5bf54c28e52fb2762a015de8
    https://github.com/scummvm/scummvm/commit/784eb48676a548ef5bf54c28e52fb2762a015de8
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2023-08-27T13:51:44+02:00

Commit Message:
GOB: Fix a recently introduced memory leak

Changed paths:
    engines/gob/dataio.cpp


diff --git a/engines/gob/dataio.cpp b/engines/gob/dataio.cpp
index 1644a7ee037..2309ca34fdd 100644
--- a/engines/gob/dataio.cpp
+++ b/engines/gob/dataio.cpp
@@ -420,7 +420,7 @@ Common::SeekableReadStream *DataIO::getFile(File &file) {
 		new Common::SafeSeekableSubReadStream(&file.archive->file, file.offset, file.offset + file.size);
 
 	Common::SeekableReadStream *bufferedRawData =
-		Common::wrapBufferedSeekableReadStream(rawData, 4096, DisposeAfterUse::NO);
+		Common::wrapBufferedSeekableReadStream(rawData, 4096, DisposeAfterUse::YES);
 
 	if (file.compression == 0)
 		return bufferedRawData;




More information about the Scummvm-git-logs mailing list