[Scummvm-git-logs] scummvm master -> c2dbf6fa7c05091ef1c2c8410ce9671f13f9be90
sluicebox
noreply at scummvm.org
Tue Feb 4 06:17:49 UTC 2025
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:
c2dbf6fa7c IMAGE: Fix memory leak in CicnDecoder
Commit: c2dbf6fa7c05091ef1c2c8410ce9671f13f9be90
https://github.com/scummvm/scummvm/commit/c2dbf6fa7c05091ef1c2c8410ce9671f13f9be90
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-02-03T22:15:34-08:00
Commit Message:
IMAGE: Fix memory leak in CicnDecoder
CID 1587162
(Separate from ebda26576191085ad74fbea6c2897304d7cca788)
Changed paths:
image/cicn.cpp
diff --git a/image/cicn.cpp b/image/cicn.cpp
index 31575422770..ce28dece879 100644
--- a/image/cicn.cpp
+++ b/image/cicn.cpp
@@ -132,6 +132,7 @@ bool CicnDecoder::loadStream(Common::SeekableReadStream &stream) {
}
}
}
+ delete[] buf;
} else if (pixMap.pixelSize == 2) {
byte *buf = new byte[pixMap.rowBytes];
for (int y = 0; y < bitmapHeight; y++) {
More information about the Scummvm-git-logs
mailing list