mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
SCI: Fix robot memory leak
svn-id: r55390
This commit is contained in:
parent
bb2ae25626
commit
cd62c3ae42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user