[Scummvm-cvs-logs] scummvm master -> cff33888d5669edc01be065660b73c8876857fa6
eriktorbjorn
eriktorbjorn at telia.com
Tue Jun 9 23:44:55 CEST 2015
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:
cff33888d5 SHERLOCK: Fix tiny memory leak
Commit: cff33888d5669edc01be065660b73c8876857fa6
https://github.com/scummvm/scummvm/commit/cff33888d5669edc01be065660b73c8876857fa6
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2015-06-09T23:43:45+02:00
Commit Message:
SHERLOCK: Fix tiny memory leak
Changed paths:
engines/sherlock/scalpel/scalpel.cpp
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index 67385eb..6c47e3b 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -187,11 +187,11 @@ ScalpelEngine::~ScalpelEngine() {
void ScalpelEngine::initialize() {
// 3DO actually uses RGB555, but some platforms of ours only support RGB565, so we use that
- const Graphics::PixelFormat *pixelFormatRGB565 = new Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0);
if (getPlatform() == Common::kPlatform3DO) {
+ const Graphics::PixelFormat pixelFormatRGB565 = Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0);
// 320x200 16-bit RGB565 for 3DO support
- initGraphics(320, 200, false, pixelFormatRGB565);
+ initGraphics(320, 200, false, &pixelFormatRGB565);
} else {
// 320x200 palettized
initGraphics(320, 200, false);
More information about the Scummvm-git-logs
mailing list