diff options
author | Lars Skovlund | 2011-01-21 19:52:52 +0000 |
---|---|---|
committer | Lars Skovlund | 2011-01-21 19:52:52 +0000 |
commit | cd62c3ae42b9f85540f8b112f580413a631aceb6 (patch) | |
tree | 42936bdbeb40ed510d62f4743a145e82dcf24fdc /engines/sci | |
parent | bb2ae25626ae6e0cdbf53f41afc00261d86f1ced (diff) | |
download | scummvm-rg350-cd62c3ae42b9f85540f8b112f580413a631aceb6.tar.gz scummvm-rg350-cd62c3ae42b9f85540f8b112f580413a631aceb6.tar.bz2 scummvm-rg350-cd62c3ae42b9f85540f8b112f580413a631aceb6.zip |
SCI: Fix robot memory leak
svn-id: r55390
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/robot.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |