[Scummvm-git-logs] scummvm master -> ebda26576191085ad74fbea6c2897304d7cca788

sluicebox noreply at scummvm.org
Tue Jan 21 11:29: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:
ebda265761 IMAGE: Fix memory leak in CicnDecoder


Commit: ebda26576191085ad74fbea6c2897304d7cca788
    https://github.com/scummvm/scummvm/commit/ebda26576191085ad74fbea6c2897304d7cca788
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-01-21T03:29:32-08:00

Commit Message:
IMAGE: Fix memory leak in CicnDecoder

CID 1587162

Changed paths:
    image/cicn.cpp


diff --git a/image/cicn.cpp b/image/cicn.cpp
index 8ff345b381a..31575422770 100644
--- a/image/cicn.cpp
+++ b/image/cicn.cpp
@@ -160,6 +160,7 @@ bool CicnDecoder::loadStream(Common::SeekableReadStream &stream) {
 			stream.read(buf, pixMap.rowBytes);
 			memcpy(_surface->getBasePtr(0, y), buf, bitmapWidth);
 		}
+		delete[] buf;
 	} else {
 		error("CicnDecoder::loadStream(): Invalid pixel size %d", pixMap.pixelSize);
 	}




More information about the Scummvm-git-logs mailing list