[Scummvm-git-logs] scummvm master -> 3f2744d99fb839caf397552fa7e8f0c8a1a9cd61

rvanlaar noreply at scummvm.org
Wed Sep 21 08:04:47 UTC 2022


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:
3f2744d99f DIRECTOR: Fix resource leak coverity #1430023


Commit: 3f2744d99fb839caf397552fa7e8f0c8a1a9cd61
    https://github.com/scummvm/scummvm/commit/3f2744d99fb839caf397552fa7e8f0c8a1a9cd61
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-21T10:02:07+02:00

Commit Message:
DIRECTOR: Fix resource leak coverity #1430023

Fix Resource leak when running with debugflag `screenshot`.

Changed paths:
    engines/director/score.cpp


diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 140a9a86305..eae1927a766 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -942,6 +942,7 @@ void Score::screenShot() {
 	}
 
 	newSurface->free();
+	delete newSurface;
 }
 
 uint16 Score::getSpriteIDFromPos(Common::Point pos) {




More information about the Scummvm-git-logs mailing list