[Scummvm-git-logs] scummvm master -> 77156aa1b9732ac2e153e2ffd5f2adf0c5edfc0c

sev- noreply at scummvm.org
Wed May 28 21:34:36 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:
77156aa1b9 ALG: Fix new/delete mismatch


Commit: 77156aa1b9732ac2e153e2ffd5f2adf0c5edfc0c
    https://github.com/scummvm/scummvm/commit/77156aa1b9732ac2e153e2ffd5f2adf0c5edfc0c
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-05-28T23:34:06+02:00

Commit Message:
ALG: Fix new/delete mismatch

Changed paths:
    engines/alg/graphics.cpp


diff --git a/engines/alg/graphics.cpp b/engines/alg/graphics.cpp
index 8364de97ac7..2d98b10ff33 100644
--- a/engines/alg/graphics.cpp
+++ b/engines/alg/graphics.cpp
@@ -143,7 +143,7 @@ Common::Array<Graphics::Surface *> *AlgGraphics::loadScreenCoordAniImage(const C
 		aniImage->copyRectToSurface(*renderTarget, 0, 0, subSectionRect);
 		images->push_back(aniImage);
 		renderTarget->free();
-		delete[] renderTarget;
+		delete renderTarget;
 	}
 	aniFile.close();
 	return images;




More information about the Scummvm-git-logs mailing list