[Scummvm-git-logs] scummvm master -> a1e3a9e77243cb17f9cc84288068f0398c11f902
sluicebox
noreply at scummvm.org
Sat Apr 27 23:57:48 UTC 2024
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:
a1e3a9e772 SCUMMM: HE: Fix memory leak. PVS-Studio V773
Commit: a1e3a9e77243cb17f9cc84288068f0398c11f902
https://github.com/scummvm/scummvm/commit/a1e3a9e77243cb17f9cc84288068f0398c11f902
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2024-04-27T16:56:14-07:00
Commit Message:
SCUMMM: HE: Fix memory leak. PVS-Studio V773
Changed paths:
engines/scumm/he/gfx_primitives_he.cpp
diff --git a/engines/scumm/he/gfx_primitives_he.cpp b/engines/scumm/he/gfx_primitives_he.cpp
index 0f06458728e..3a1e5a2a5dd 100644
--- a/engines/scumm/he/gfx_primitives_he.cpp
+++ b/engines/scumm/he/gfx_primitives_he.cpp
@@ -214,8 +214,8 @@ void Wiz::pgClippedThickLineDraw(WizSimpleBitmap *destBM, int asx, int asy, int
// Now we can compute the corner points...
- int *xPoints = new int[4];
- int *yPoints = new int[4];
+ int xPoints[4];
+ int yPoints[4];
xPoints[aSortOrder[0]] = asx - iCompDX;
yPoints[aSortOrder[0]] = asy - iCompDY;
More information about the Scummvm-git-logs
mailing list