[Scummvm-git-logs] scummvm master -> a03c1379bc08181b49e4e04ef25513c0ea638e2a
yuv422
noreply at scummvm.org
Sat Feb 15 23:00:17 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:
a03c1379bc DARKSEED: Coverity CID 1591750 fix resource leak.
Commit: a03c1379bc08181b49e4e04ef25513c0ea638e2a
https://github.com/scummvm/scummvm/commit/a03c1379bc08181b49e4e04ef25513c0ea638e2a
Author: Eric Fry (yuv422 at reversedgames.com)
Date: 2025-02-16T09:59:47+11:00
Commit Message:
DARKSEED: Coverity CID 1591750 fix resource leak.
Changed paths:
engines/darkseed/cursor.cpp
diff --git a/engines/darkseed/cursor.cpp b/engines/darkseed/cursor.cpp
index 1d8a3e27246..8a923b8c345 100644
--- a/engines/darkseed/cursor.cpp
+++ b/engines/darkseed/cursor.cpp
@@ -35,6 +35,7 @@ void Cursor::setCursorType(enum CursorType newType) {
surf.create(cursorSprite._width, cursorSprite._height, Graphics::PixelFormat::createFormatCLUT8());
surf.copyRectToSurface(cursorSprite._pixels.data(), cursorSprite._pitch, 0, 0, cursorSprite._width, cursorSprite._height);
CursorMan.replaceCursor(surf, 0, 0, 0xf);
+ surf.free();
}
}
More information about the Scummvm-git-logs
mailing list