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

kelmer44 noreply at scummvm.org
Sun Oct 5 06:42:06 UTC 2025


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

Summary:
b29a59a571 TOT: Frees array on diploma generation (as reported by coverity)


Commit: b29a59a57135286f796dbc43d5b00dabf8ca881a
    https://github.com/scummvm/scummvm/commit/b29a59a57135286f796dbc43d5b00dabf8ca881a
Author: kelmer (kelmer at gmail.com)
Date: 2025-10-05T08:41:55+02:00

Commit Message:
TOT: Frees array on diploma generation (as reported by coverity)

Changed paths:
    engines/tot/engine.cpp


diff --git a/engines/tot/engine.cpp b/engines/tot/engine.cpp
index 21cf3f790bc..cb57bd9ccfb 100644
--- a/engines/tot/engine.cpp
+++ b/engines/tot/engine.cpp
@@ -3293,7 +3293,7 @@ void TotEngine::openScreenObject() {
 				animatePickup1(0, 1);
 				clearScreenLayer(_curObject.depth - 1);
 				yIndex = 0;
-				while (_currentRoomData->screenLayers[yIndex].depth != _curObject.depth && yIndex < 14) {
+				while (_currentRoomData->screenLayers[yIndex].depth != _curObject.depth && yIndex < 15) {
 					yIndex++;
 				}
 				debug("changing bitmap at %d, with depth = %d", yIndex, _currentRoomData->screenLayers[yIndex].depth);
@@ -4600,6 +4600,7 @@ static void loadDiploma(Common::String &photoName, Common::String &key) {
 	delay(1500);
 	g_engine->_sound->playVoc("PORTAZO", 434988, 932);
 	g_engine->_graphics->putShape(270, 159, stamp);
+	free(passArray);
 	free(stamp);
 }
 




More information about the Scummvm-git-logs mailing list