From cd62c3ae42b9f85540f8b112f580413a631aceb6 Mon Sep 17 00:00:00 2001 From: Lars Skovlund Date: Fri, 21 Jan 2011 19:52:52 +0000 Subject: SCI: Fix robot memory leak svn-id: r55390 --- engines/sci/graphics/robot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci') diff --git a/engines/sci/graphics/robot.cpp b/engines/sci/graphics/robot.cpp index 6ee2e53a88..caa2f89cab 100644 --- a/engines/sci/graphics/robot.cpp +++ b/engines/sci/graphics/robot.cpp @@ -109,7 +109,7 @@ void GfxRobot::initData(GuiResourceId resourceId) { void GfxRobot::draw(int x, int y) { - return; /* TODO: Remove once done */ + return; // TODO: Remove once done // Play the audio of the robot file (for debugging) #if 0 if (_hasSound) { @@ -164,6 +164,7 @@ void GfxRobot::draw(int x, int y) { g_system->copyRectToScreen(pixels, width, x, y, width, (int) (height * getFrameScaleFactor(i))); g_system->updateScreen(); g_system->delayMillis(100); + delete[] pixels; } g_system->setPalette(savePal, 0, 256); -- cgit v1.2.3